IT story

실행기의 치명적인 오류 : ""C : \ Program Files (x86) \ Python33 \ python.exe ""C : \ Program Files (x86) \ Python33 \ pip.exe ""를 사용하여 프로세스를 만들 수 없습니다.

hot-time 2020. 5. 11. 08:05
반응형

실행기의 치명적인 오류 : ""C : \ Program Files (x86) \ Python33 \ python.exe ""C : \ Program Files (x86) \ Python33 \ pip.exe ""를 사용하여 프로세스를 만들 수 없습니다.


그물을 검색하면 Python 설치 경로의 공백으로 인해 문제가되는 것 같습니다.

pip공백없이 경로에 모든 것을 다시 설치하지 않고 어떻게 작업합니까?


그것은 보인다

python -m pip install XXX 

어쨌든 작동합니다 (나를 위해 일함 ) ( user474491의 링크 참조 )


Windows에서는 최소한 pip실행 경로 pip.exe가 설치 될 때 실행 파일에 저장합니다 .

16 진 편집기 또는 워드 패드를 사용하여이 파일을 편집하고 (이진 데이터를 보존하려면 일반 텍스트로 저장해야 함) 다음과 같이 따옴표와 공백으로 Python 경로를 변경하십시오.

#!"C:\Program Files (x86)\Python33\python.exe"

공백과 따옴표가없는 이스케이프 된 경로로 공백으로 채 웁니다 (끝의 점은 공백이어야 함).

#!C:\Progra~2\Python33\python.exe.............

"C : \ Program Files"의 경우이 경로는 "C : \ Progra ~ 1"일 것입니다 (DOS / Windows 3.x 표기법에서 단축 된 경로 이름은 물결표와 숫자를 사용합니다). Windows는 DOS / Windows 3.x 앱과의 호환성을 위해이 대체 표기법을 제공합니다.

이 파일은 바이너리 파일이므로 실행 파일을 손상시킬 수있는 파일 크기를 변경해서는 안되므로 패딩이 발생합니다.

관리자 권한으로 저장하고 실제로 대상 위치에 저장되었는지 확인한 후 다시 시도하십시오.

경로 표기법 PATH을 사용하도록 변수 를 설정해야 할 수도 있습니다 .~pip


https://pip.pypa.io/en/latest/installing.html#install-pip 에서 pip를 업데이트 하는 것과 동일한 문제가 발생 했습니다.

python -m pip install -U pip

그래서 나는 (예를 들어)

python -m pip install virtualenv

그리고 효과가있었습니다! 따라서 원하는 다른 패키지 'virtualenv'와 동일한 작업을 수행 할 수 있습니다.


파이썬 -m 핍

실제로 문제에 작동합니다 Fatal error in launcher: Unable to create process using '"'.Windows 10에서 작동했습니다.


비슷한 문제가 있었고 pip를 업그레이드하면 문제가 해결되었습니다.

python -m pip install --upgrade pip 

이것은 Windows에 있었고 pip.exe 내의 python에 대한 경로가 잘못되었습니다. 경로에 대한 자세한 내용은 Archimedix 답변참조하십시오 .


내가 해결 한 방법은 다음과 같습니다.

  1. pip.exe7zip으로 열고 __main__.pyPython \ Scripts 폴더로 추출하십시오 .

    내 경우에는 C:\Program Files (x86)\Python27\Scripts

  2. 이름 바꾸기 __main__.pypip.py

  3. 그것을 실행하십시오! python pip.py install something

편집하다:

pip install something어느 곳에서나 할 수 있으려면 다음 과 같이하십시오.

  1. 가져 오기 pip 오류를 피하기 위해 pip.py의 이름을 pip2.py로 바꾸십시오.

  2. 수 있도록 C:\Program Files (x86)\Python27\pip.bat다음과 같은 내용으로 :

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

  1. C:\Program Files (x86)\Python27PATH에 추가 하십시오 (아직없는 경우).

  2. 그것을 실행하십시오! pip install something


이것은이다 알려진 버그 에 공백이있는 경우 virtualenv경로. 수정이 완료되었으며 다음 버전에서 제공 될 예정입니다.


나는 같은 문제가 있었고 다음을 사용하여 핍 업그레이드를했는데 지금은 잘 작동합니다. python -m pip install --upgrade pip


그 exe를 패치하는 스크립트를 작성했습니다. 그러나 가장 좋은 방법은 distutil 자체를 수정하는 것입니다.

"""Fix "Fatal error in launcher: Unable to create process using ..." error. Put me besides those EXE made by pip. (They are made by distutils, and used by pip)"""
import re
import sys
import os
from glob import glob


script_path = os.path.dirname(os.path.realpath(__file__))
real_int_path = sys.executable
_t = script_path.rpartition(os.sep)[0] + os.sep + 'python.exe'
if script_path.lower().endswith('scripts') and os.path.isfile(_t):
    real_int_path = _t

print('real interpreter path: ' + real_int_path)
print()

for i in glob('*.exe'):
    with open(i, 'rb+') as f:
        img = f.read()
        match = re.search(rb'#![a-zA-Z]:\\.+\.exe', img)
        if not match:
            print("can't fix file: " + i)
            continue
        int_path = match.group()[2:].decode()
        int_path_start = match.start() + 2
        int_path_end = match.end()

        if int_path.lower() == real_int_path.lower():
            continue
        print('fix interpreter path: %s in %s' % (int_path, i))
        f.seek(int_path_start)
        f.write(real_int_path.encode())
        f.write(img[int_path_end:])

Windows 10에서 동일한 문제가 발생했지만 이전의 모든 솔루션을 시도한 후에도 문제가 지속되므로 Python 2.7을 제거하고 버전 2.7.13을 설치하기로 결정했으며 완벽하게 작동합니다.


I renamed the executable of python.exe to e.g. python27.exe. In respect to the answer of Archimedix I opened my pip.exe with a Hex-Editor, scrolled to the end of the file and changed the python.exe in the path to python27.exe. While editing make shure you don't override other informations.


I added my anwer because I have getting the same error while configure ODDO9 source code in local and its need the exe to run while run exe, I got the same error.

From yesterday I was configure oddo 9.0 (section :- "Python dependencies listed in the requirements.txt file.") and its need to run PIP exe as

C:\YourOdooPath> C:\Python27\Scripts\pip.exe install -r requirements.txt

My oddo path is :- D:\Program Files (x86)\Odoo 9.0-20151014 My pip location is :- D:\Program Files (x86)\Python27\Scripts\pip.exe

So I open command prompt and go to above oddo path and try to run pip exe with these combination, but not given always above error.

  1. D:\Program Files (x86)\Python27\Scripts\pip.exe install -r requirements.txt
  2. "D:\Program Files (x86)\Python27\Scripts\pip.exe install -r requirements.txt" Python27\Scripts\pip.exe install -r requirements.txt

  3. "Python27/Scripts/pip.exe install -r requirements.txt"

I resolved my issue by the @user4154243 answer, thanks for that.

Step 1: Add variable(if your path is not comes in variable's path).

Step 2: Go to command prompt, open oddo path where you installed.

Step 3: run this command python -m pip install XXX will run and installed the things.


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


My exact problem was (Fatal error in launcher: Unable to create process using '"') on windows 10. So I navigated to the "C:\Python33\Lib\site-packages" and deleted django folder and pip folders then reinstalled django using pip and my problem was solved.


I have chosen to install Python for Windows (64bit) not for all users, but just for me.

Reinstalling Python-x64 and checking the advanced option "for all users" solved the pip problem for me.


This can happen if you are using a case-sensitive file system on Windows. You can tell if this is the case if there is both a lib directory and a Lib directory in your venv directory :

> dir

Directory: C:\git\case\sensitive\filesystem\here\venv

Mode                LastWriteTime         Length Name
----                -------------         ------ ----
d-----        4/07/2018   4:10 PM                Include
d-----       22/01/2019   7:52 AM                Lib
d-----       22/01/2019   7:52 AM                lib
d-----       22/01/2019   7:52 AM                Scripts
d-----       22/01/2019   7:52 AM                tcl

To workaround this (until virtualenv.py gets fixed: https://github.com/pypa/virtualenv/issues/935) merge the two lib directories and make venv case-insensitive:

cd venv
move Lib rmthis
move .\rmthis\site-packages\ lib
rmdir rmthis
fsutil.exe file setCaseSensitiveInfo . disable

Here is how i fixed it.

  1. Download https://bootstrap.pypa.io/get-pip.py
  2. Active your vitualenv
  3. Navigate to the get-pip.py file and type "python get-pip.py" without quote.

it will reinstall your pip within the environment and uninstall the previous version automatically.

now boom!! install whatever you like


Please add this address :

C:\Program Files (x86)\Python33

in Windows PATH Variable

Though first make sure this is the folder where Python exe file resides, then only add this path to the PATH variable.

To append addresses in PATH variable, Please go to

Control Panel -> Systems -> Advanced System Settings -> Environment Variables -> System Variables -> Path -> Edit ->

Then append the above mentioned path & click Save


Try reinstall by using the below link,

Download https://bootstrap.pypa.io/get-pip.py

After download, copy the "get-pip.py" to python installed main dirctory, then open cmd and navigate to python directory and type "python get-pip.py" (without quotes)

Note: Also make sure the python directory is set in the environmental variable.

Hope this might help.


For me this problem appeared when I changed the environment path to point to v2.7 which was initially pointing to v3.6. After that, to run pip or virtualenv commands, I had to python -m pip install XXX as mentioned in the answers below.

So, in order to get rid of this, I ran the v2.7 installer again, chose change option and made sure that, add to path option was enabled, and let the installer run. After that everything works as it should.


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.


I had a simpler solution. Using @apple way but rename main.py to pip.py then put it in your python version scripts folder and add scripts folder to your path access it globally. if you don't want to add it to path you have to cd to scripts and then run pip command.


On Windows I had solved this problem in the following way :

1) uninstalled Python

2) navigated to C:\Users\MyName\AppData\Local\Programs(your should turn on hidden files visibility Show hidden files instruction)

3) deleted 'Python' folder

4) installed Python


Instead of calling ipython directly, it is loaded using Python such as

$ python "full path to ipython.exe"

참고URL : https://stackoverflow.com/questions/24627525/fatal-error-in-launcher-unable-to-create-process-using-c-program-files-x86

반응형