Switching between versions of python installed from microsoft store

EMP_H 1 Reputation point
2021-02-08T16:40:58.6+00:00

So I installed python 3.9 and 3.7 from the microsoft store because I need both versions for certain projects, and I am wondering if it is possible to switch between which version of python I want my system to use.

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
6,875 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Grmacjon-MSFT 15,856 Reputation points
    2021-02-08T23:32:39.843+00:00

    Hi @EMP_H ,

    Yes, you should be able to switch between python versions. As a standard, it is recommended to use the python3 command or python3.7 to select a specific version. The py.exe launcher will automatically select the most recent version of Python you've installed. You can also use commands like py -3.7 to select a particular version, or py --list to see which versions can be used. HOWEVER, the py.exe launcher will only work if you are using a version of Python installed from python.org. When you install Python from the Microsoft Store, the py command is not included. Since you're using the Microsoft Store version of Python, you should use the python3 (or python3.7) command.

    Hope that helped. Please let us know if you have further questions.

    Best,
    Grace

    For information please read this FAQ doc for using python on windows.

    1 person found this answer helpful.