How to create virtual enviroment

I have PsychoPy3 v3.2.4. version but the code I am working on is written in the Psychopy v1.85.6. So i have version problems.
I want to create virtual enviroment to solve these problems but i don’t know how to do it. Could you inform me how to create a virtual environment for PsychoPy.
Thank you

Hi @bets, how have you installed PsychoPY? If you use the standalone versions, you can have separate versions of PsychoPy3 installed, that either run using Python 2 or Python 3.