Python upgrade issue from 3.9 to 3.10 on Windows


I had a Python 3.9 installed on my Windows 10 machine and it had a lot of issues, so I had to upgrade it to Python 3.10

I uninstalled Python 3.9 from my machine, and installed 3.10, and added it to PATH.

I also had a Python 3.7 instance as well.

Now after installing Python 3.10, pip and virtualenv are not working anymore, when I try to install virtualenv using pip, I get this error:

Fatal error in launcher: Unable to create process using '"c:\users\wwwwww\appdata\local\programs\python\python37\python.exe"  "C:\Users\wwwww\AppData\Local\Programs\Python\Python37\Scripts\pip.exe" install virtualenv': File not found

Even after uninstalling Python 3.9, I can still see 3.7 and 3.9 on my machine:

enter image description here

When I try python on my Visual Code terminal, I get the shell and everything works fine:

But when I try to run it on Git Bash, I get nothing, and the terminal crashes:
enter image description here

I want to reset everything and remove all python and pip so I can start from scratch and continue my work because I’m blocked right now.


The problem is with Windows 10 and their decision to automatically enable Python as an execution alias, and thus impacting the command line behavior.

To solve this issue, simply go to Windows Parameters -> Apps and Features, and search: Manage Apps Execution Aliases.

Uncheck every Python mention in the list:
enter image description here

And now the problem is solved:

enter image description here

Answered By – Kaiss B.

This Answer collected from stackoverflow, is licensed under cc by-sa 2.5 , cc by-sa 3.0 and cc by-sa 4.0

Leave a Reply

(*) Required, Your email will not be published