Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Pip is selecting wrong path

I'm using windows 10 and I got rid of python 3.8 and installed 3.7 as the only python version on my system.

When trying to install libraries using pip I now get the error:

Fatal error in launcher: Unable to create process using '"c:\users\user\appdata\local\programs\python\python38-32\python.exe"  "C:\Users\User\AppData\Local\Programs\Python\Python38-32\Scripts\pip.exe" install pygame_menu': The system cannot find the file specified.

when I checked in the console which -a pip I got:

C:\Users\User>which -a pip
/cygdrive/c/Users/User/AppData/Local/Programs/Python/Python38-32/Scripts/pip
/cygdrive/c/Users/User/AppData/Local/Programs/Python/Python37/Scripts/pip

Now when I look for Python in my variable path it is alright... Anyways I can't figure out how to change the path of pip so the right one is selected... besides its pretty weird that ive uninstalled python and pip multiple times and it still gets it wrong every time during installation.

Thanks

like image 410
crommy Avatar asked Jul 13 '26 14:07

crommy


1 Answers

For me this solution did the job, thanks itsAPK

python -m pip install --upgrade --force-reinstall pip

The cause of this problem was me installing python from Microsoft store and having another version installed from the default installer, when I removed the Microsoft store version it was prompting me with errors.

like image 180
RemiGc Avatar answered Jul 15 '26 05:07

RemiGc



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!