Installing pyinstaller via pip leads to “failed to

2019-01-11 22:35发布

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

I installed pyinstaller via pip install pyinstaller through the anaconda command prompt on Windows 64 bit using 32 bit anaconda (because I want to create 32 bit executables)

Yes I read pyinstaller --version failed to create a process and pip/easy_install failure: failed to create process and How to install pyinstaller using pip

I did not rename any files I installed anaconda 15 mins ago, pycharm 10 mins ago, and pyinstaller 5 mins ago. I uninstalled pyinstaller via pup uninstall and reinstalled in the anaconda scripts folder, this did nothing.

Any insight anyone? #windowsfrustrations Path C:\Users\me\Anaconda\Lib\site-packages>PyInstaller

9条回答
狗以群分
2楼-- · 2019-01-11 22:49

As of July 2016 the issue was reported as fixed, ugrading pip, setuptools and then uninstalling and installing pyinstaller should remedy the problem

查看更多
放荡不羁爱自由
3楼-- · 2019-01-11 22:49

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".

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

查看更多
叼着烟拽天下
4楼-- · 2019-01-11 22:57

This error seems to occur when Python’s (or PyInstaller’s) path contains a space (for example, when one installs Python to the Program Files (x86) directory.)

I suspect that somewhere in PyInstaller’s source code there are some missing quotation marks.

Try installing Python in a path without spaces, and installing PyInstaller (via pip) to that path.

查看更多
Lonely孤独者°
5楼-- · 2019-01-11 23:00

python -m pip install pip worked for me.

With Anaconda version of Python 3.5.2 and 3.6.0(Upgraded for this error, but the error appears to be the same with both versions), I had encountered the same error message with command pip install pip, or pip install whatever/ conda install whatever.

I had both Python 2.7 and 3.5, but pip install --upgrade pip had been working every day, until a few days ago.

查看更多
The star\"
6楼-- · 2019-01-11 23:01

"C:\Program Files\Python35-32\python.exe" "C:\Program Files\Python35-32\Scripts\pyinstaller-script.py" --onefile --windowed ex_btn.py

--onefile : create only exe, --windowed : exclude the prompting CMD, ex_btn.py : python script file.

This worked like charm.

查看更多
别忘想泡老子
7楼-- · 2019-01-11 23:07

I fixed it [Anaconda 3.4] by doing this:

  1. Enter Anaconda Command Prompt
  2. Get to anaconda scripts folder by: cd /path/to/anaconda/Scripts
  3. Write: python pyinstaller-script.py path/YourScript.py

Worked like a charm.

查看更多
登录 后发表回答