来自c:\ users \ halzein \ appdata \ local \ programs \ python \ python37 \ lib \ site-packages \ pip(python 3.7)的pip 19.0.1
尝试使用以下命令安装PyInstaller:
pip3 install PyInstaller --trusted-host pypi.org --trusted-host files.pythonhosted.org
(如果我尝试使用没有受信任主机标签的pip会出错)
下载并安装构建依赖项后,由于该错误,安装仍然失败:
ModuleNotFoundError: No module named 'PyInstaller'
Command "c:\users\halzein\appdata\local\programs\python\python37\python.exe c:\users\halzein\appdata\local\programs\python\python37\lib\site-packages\pip\_vendor\pep517\_in_process.py get_requires_for_build_wheel C:\Users\halzein\AppData\Local\Temp\tmpfwtrnagf" failed with error code 1 in C:\Users\halzein\AppData\Local\Temp\pip-install-thcvcr0q\PyInstaller\
不确定是什么原因造成的,我的搜索没有任何结果。
答案 0 :(得分:0)
我遇到了同样的错误,这对我有用:
以管理员身份运行Windows powershell,然后通过键入pip install pip==18.1
将pip降级到18.1,这将卸载19.0.1并安装18.1版本。之后,只需运行pip install pyinstaller
,它就可以正确完成。比起您可以使用python -m pip install –upgrade pip
希望这对您也有帮助。
干杯=)