How to use PsychoPy within a virtual environment?

If you’re using the PsychoPy app, it basically creates its own virtual environment. You can add libraries to that environment with a few extra steps, see here: Adding new python module to standalone psychopy