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:
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.
And now the problem is solved:
Answered By – Kaiss B.