python安装pyinstaller出现错误_pyinstaller库安装错误解决

论坛 期权论坛 脚本     
已经匿名di用户   2022-4-20 22:06   2290   0

错误提示:

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

原文链接:https://blog.csdn.net/jiangjiangjiang6/article/details/105836332

分享到 :
0 人收藏
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

积分:81
帖子:4969
精华:0
期权论坛 期权论坛
发布
内容

下载期权论坛手机APP