Search code examples
pythonpathpipfatal-error

Pip : Fatal error in launcher -because of wrong path


I had python 32 bit installed so i uninstalled it and installed the 64 bit version. I upgraded the path also but when i try using pip it is still using the previous path of the 32 bit python and pip

this is the exact error in cmd :

Fatal error in launcher: Unable to create process using '"c:\users\sagar annaji\appdata\local\programs\python\python37-32\python.exe" "C:\Users\Sagar Annaji\AppData\Local\Programs\Python\Python37-32\Scripts\pip.e xe" install numpy'

while i think with my new path the command should have been:

'"C:\Users\Sagar Annaji\AppData\Local\Programs\Python\Python37\python.exe" "C:\Users\Sagar Annaji\AppData\Local\Programs\Python\Python37\Scripts\pip.exe" install numpy'

python works fine but pip doesnt i included a pic of my path variables please help me resolve it.

path variable


Solution

  • use python -m pip because that ensures that pip is pointing to the correct python. The pip binary by itself might point to the wrong place

    thanks to user @C.Nivs