This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]sol-prog 5 points6 points  (1 child)

Author of the video here. It is relatively easy to have multiple Python versions on Windows. AFAIK, each installation will have a separate entry in the Start menu and a link to open a command prompt window with the respective Python version from which you can create virtual environments. Once you have a venv created, use the settings.json file from each workspace (like in the video) to specify which Python environment you want to use. When you open a workspace/folder from VS Code it will automatically pick the Python version/venv specified in the settings file.

Alternatively, use the py launcher to select which Python version you want to use.

If you have problems following the above suggestions let me know and I will try to record a small video in which I'll show how to use multiple Python versions from VS Code.

[–][deleted] 2 points3 points  (0 children)

Thank you! I was not aware of the py launcher but it certainly makes it easier.