Fatal error in launcher: Unable to create process

2019-01-03 00:35发布

Searching the net this seems to be a problem caused by spaces in the Python installation path.

How do I get pip to work without having to reinstall everything in a path without spaces ?

标签: python pip
22条回答
Explosion°爆炸
2楼-- · 2019-01-03 01:22

it seems that

python -m pip install XXX 

will work anyway (worked for me) (see link by user474491)

查看更多
We Are One
3楼-- · 2019-01-03 01:23

I had this issue and the other fixes on this page didn't fully solve the problem.

What did solve the problem was going in to my system environment variables and looking at the PATH - I had uninstalled Python 3 but the old path to the Python 3 folder was still there. I'm running only Python 2 on my PC and used Python 2 to install pip.

Deleting the references to the nonexistent Python 3 folders from PATH in addition to upgrading to the latest version of pip fixed the issue.

查看更多
淡お忘
4楼-- · 2019-01-03 01:25

This is a known Bug when there is a space in the virtualenv path. Correction has been made, and will be available in the next version.

查看更多
成全新的幸福
5楼-- · 2019-01-03 01:25

i solve my problem in Window if u install both python2 and python3

u need enter someone \Scripts change all file.exe to file27.exe,then it solve

my D:\Python27\Scripts edit django-admin.exe to django-admin27.exe so it done

查看更多
神经病院院长
6楼-- · 2019-01-03 01:28

Here's how I solved it:

  1. open pip.exe in 7zip and extract __main__.py to Python\Scripts folder.

    In my case it was C:\Program Files (x86)\Python27\Scripts

  2. Rename __main__.py to pip.py

  3. Run it! python pip.py install something

EDIT:

If you want to be able to do pip install something from anywhere, do this too:

  1. rename pip.py to pip2.py (to avoid import pip errors)

  2. make C:\Program Files (x86)\Python27\pip.bat with the following contents:

python "C:\Program Files (x86)\Python27\Scripts\pip2.py" %1 %2 %3 %4 %5 %6 %7 %8 %9

  1. add C:\Program Files (x86)\Python27 to your PATH (if is not already)

  2. Run it! pip install something

查看更多
啃猪蹄的小仙女
7楼-- · 2019-01-03 01:29

python -m pip

really works for the problem Fatal error in launcher: Unable to create process using '"'.Worked on Windows 10

查看更多
登录 后发表回答