To create a Python virtual environment using Thonny, do the following:
- In Thonny, click on Run | Select Interpreter.
- In the drop-down menu, Which interpreter or device should Thonny use for running your code?, select Alternative Python 3 interpreter or virtual environment.
- Click on the Create new virtual environment ... button:

- Navigate to an empty folder and click on Select Folder.
- You should see the Creating virtual environment dialog. After a short while, you will see the new virtual environment under the Known interpreters field.
- Click on OK to close the Thonny options dialog box.
To verify that ...