1

So common error with several possible causes. Running

 pip install requests

results in the following error

Fatal error in launcher: Unable to create process using '"c:\users\foo\appdata\local\programs\python\python36\python.exe" "C:\Users\foo\AppData\Local\Programs\Python\Python36\Scripts\pip.exe"

I've just installed Python 3.77 on Windows 10 to this location (after removing previous versions)

c:\python37\

After searching here Fatal error in launcher: Unable to create process using ""C:\Program Files (x86)\Python33\python.exe" "C:\Program Files (x86)\Python33\pip.exe""

Pip - Fatal error in launcher: Unable to create process using '"'

I tried using

python -m pip install --upgrade pip 

which results in

Requirement already up-to-date: pip in c:\python37\lib\site-packages (20.0.2)

And thinking it is a pathing issue I tried the following command but no difference

setx PATH "%PATH%;C:\python37\lib\site-packages"

What should I try next?

Jay Blanchard
  • 34,243
  • 16
  • 77
  • 119
Bachalo
  • 6,965
  • 27
  • 95
  • 189
  • from command prompt when you type c:\> python --version what do you see ? – Ganesh Chandrasekaran Mar 18 '20 at 15:09
  • also check for c:\> pip3 --version – Ganesh Chandrasekaran Mar 18 '20 at 15:10
  • Thanks for feedback. So just entering python in the cmd line gives me 'python' is not recognized.... perhaps the setx command made things worse? and pip3 --version returns the exact same error in my post above "Fatal error in launcher: Unable to create process using... – Bachalo Mar 18 '20 at 15:24
  • to make it easier.. uninstall python 3.7 and reinstall.. when installing do custom and all users.. it will prompt for should add Python to Path.. do that.. it will make things easier for you. – Ganesh Chandrasekaran Mar 18 '20 at 15:26
  • yep my thoughts exactly. That should get me back to where I was but how to resolve the PIP issue? When I run pip in the cmd line it seems to be pointing to a non existing python install. – Bachalo Mar 18 '20 at 15:29
  • You can also try future installations with Package Managers like Chocolatey. Its like apt-get / YUM / Brew for windows. https://chocolatey.org/install – Ganesh Chandrasekaran Mar 18 '20 at 15:31
  • ok all good now. The ONLY real difference is that I chose install for All users. Also left the default install path for all users to Program Files. Thanks!! If you want o add your suggestions as answer will accept. – Bachalo Mar 18 '20 at 15:36
  • sure will do. good luck. – Ganesh Chandrasekaran Mar 18 '20 at 15:50

1 Answers1

0

to make it easier.. uninstall python 3.7 and reinstall.. when installing do custom and all users.. it will prompt for should add Python to Path..

You can also try future installations with Package Managers like Chocolatey. Its like apt-get / YUM / Brew for windows. chocolatey.org/install

Ganesh Chandrasekaran
  • 1,578
  • 12
  • 17