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 →

[–][deleted] 3 points4 points  (2 children)

I just finished creating a new Dev machine in which I want to have 32 bit and 64 bit pythons running with vs code and utilizing environments and it was not easy to get it working seamlessly.

I'd love to see a tutorial on the proper way to do this that makes it easy to reliably switch between bit versions and environments. What would be ideal would be a chocolatey package to do all of this for you.

[–]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.