pyinstaller库安装错误解决

错误提示:

ERROR: Command errored out with exit status 1: 'c:\users\***\appdata\local\programs\python\python37\python.exe' 'c:\users\***\appdata\local\programs\python\python37\lib\site-packages\pip\_vendor\pep517\_in_process.py' get_requires_for_build_wheel 'C:\Users\***\AppData\Local\Temp\tmp_c5n8fwd' Check the logs for full command output.

整理了一些错误解决方法,多数问题到第二步即可解决

1.此包依赖于pywin32,先pip install pywin32

2.setuptools和pip更新到最新版

pip install --upgrade setuptools

python -m pip install --upgrade pip

执行完1,2后再次尝试安装pyinstaller库  pip install pyinstaller

如果仍无法安装依次执行下列步骤

3.pip install --user pyinstaller

4.pip install wheel

4.以上都尝试依然无法安装则手动安装

下载pyinstaller安装包:https://pypi.org/project/PyInstaller/#files

解压,用cmd进入到解压文件夹(一定要把cmd导入到解压后的文件夹)

运行命令:Python setup.py install
 

你可能感兴趣的:(python,python)