Installing pyinstaller via pip leads to “failed to create process”

后端 未结 9 2260
时光说笑
时光说笑 2020-12-01 16:23

Does anyone know why pyinstaller immediately fails after installed via pip via anaconda 32bit?

I installed pyinstaller via

9条回答
  •  误落风尘
    2020-12-01 16:27

    I had the same issue, even with pip and setuptools updated, and the problem was that pyinstaller-script.py, found in C:\Python35\Scripts\ directory, had the wrong path for python.exe.

    Python on my system was somehow installed in AppData, but its' scripts and modules were being installed in C:\Python35\ folder.

    Changing the first line of pyinstaller-script.py to the correct path of python.exe (Programs directory inside AppData), with quotes if there's any space in the folders' names inbetween, and it should work and no longer show the "Failed to create process". Example:

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

    Using Windows10 and Python35 official installer got Python installed there somehow.

提交回复
热议问题