python下载库总是command_[866]python3.8使用pip工具安装第三方库遇到 ERROR: Command errored out with exit status报错...

在使用pip安装PyInstaller时遇到错误:ERROR: Command errored out with exit status 1,原因是setuptools版本问题或未安装wheel。解决方法是通过pip安装或升级setuptools和wheel。
摘要由CSDN通过智能技术生成

问题描述

command: 'd:\program files\python3.8\python.exe' 'd:\program files\python3.8\lib\site-packages\pip\_vendor\pep517\_in_process.py' prepare_metadata_for_build_wheel 'C:\Users\xiao杰\AppData\Local\Temp\tmppemmj51v'

cwd: C:\Users\xiao杰\AppData\Local\Temp\pip-install-ilbz22x1\pyinstaller

Complete output (36 lines):

running dist_info

creating C:\Users\xiao杰\AppData\Local\Temp\pip-modern-metadata-phi70f7i\PyInstaller.egg-info

writing C:\Users\xiao杰\AppData\Local\Temp\pip-modern-metadata-phi70f7i\PyInstaller.egg-info\PKG-INFO

writing dependency_links to C:\Users\xiao杰\AppData\Local\Temp\pip-modern-metadata-phi70f7i\PyInstaller.egg-info\dependency_links.txt

writing entry points to C:\Users\xiao杰\AppData\Local\Temp\pip-modern-metadata-phi70f7i\PyInstaller.egg-info\entry_points.txt

writing requirements to C:\Users\xiao杰\AppData\Local\Temp\pip-modern-metadata-phi70f7i\PyInstaller.egg-info\requires.txt

writing top-level names to C:\Users\xiao杰\AppData\Local\Temp\pip-modern-metadata-phi70f7i\PyInstaller.egg-info\top_level.txt

writing manifest file 'C:\Users\xiao杰\AppData\Local\Temp\pip-modern-metadata-phi70f7i\PyInstaller.egg-info\SOURCES.txt'

reading manifest file 'C:\Users\xiao杰\AppData\Local\Temp\pip-modern-metadata-phi70f7i\PyInstaller.egg-info\SOURCES.txt'

reading manifest template 'MANIFEST.in'

Error in sitecustomize; set PYTHONVERBOSE for traceback:

SyntaxError: (unicode error) 'utf-8' codec can't decode byte 0xbd in position 0: invalid start byte (sitecustomize.py, line 21)

no previously-included directories found matching 'bootloader\build'

no previously-included directories found matching 'bootloader\.waf-*'

no previously-included directories found matching 'bootloader\.waf3-*'

no previously-included directories found matching 'bootloader\waf-*'

no previously-included directories found matching 'bootloader\waf3-*'

no previously-included directories found matching 'bootloader\_sdks'

no previously-included directories found matching 'bootloader\.vagrant'

warning: no previously-included files found matching 'bootloader\.lock-waf*'

no previously-included directories found matching 'doc\source'

no previously-included directories found matching 'doc\_build'

warning: no previously-included files matching '*.tmp' found under directory 'doc'

warning: no files found matching 'news\_template.rst'

no previously-included directories found matching 'news'

no previously-included directories found matching 'old'

no previously-included directories found matching 'scripts'

no previously-included directories found matching 'tests\scripts'

no previously-included directories found matching '.github'

warning: no previously-included files found matching '.*'

warning: no previously-included files found matching '*.yml'

warning: no previously-included files found matching '*~'

warning: no previously-included files found matching '.directory'

writing manifest file 'C:\Users\xiao杰\AppData\Local\Temp\pip-modern-metadata-phi70f7i\PyInstaller.egg-info\SOURCES.txt'

creating 'C:\Users\xiao杰\AppData\Local\Temp\pip-modern-metadata-phi70f7i\PyInstaller.dist-info'

error: invalid command 'bdist_wheel'

----------------------------------------

ERROR: Command errored out with exit status 1: 'd:\program files\python3.8\python.exe' 'd:\program files\python3.8\lib\site-packages\pip\_vendor\pep517\_in_process.py' prepare_metadata_for_build_wheel 'C:\Users\xiao杰\AppData\Local\Temp\tmppemmj51v' Check the logs for full command output.

可发现问题主要出现于:

error: invalid command 'bdist_wheel’

解决方案

多半是setuptools版本不正确或者你的环境中没有安装wheel, 请使用一下命令升级:

pip install wheel

pip install --upgrade setuptools

来源:https://blog.csdn.net/L_xiao_jie/article/details/104217691

本文同步分享在 博客“周小董”(CSDN)。

如有侵权,请联系 support@oschina.cn 删除。

本文参与“OSC源创计划”,欢迎正在阅读的你也加入,一起分享。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值
>