python的pip安装pyinstalle时出现红色代码,安装错误,怎么办?

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了python的pip安装pyinstalle时出现红色代码,安装错误,怎么办?相关的知识,希望对你有一定的参考价值。

出现以下代码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\中国人\AppData\Local\Temp\pip-install-gwisi993\pyinstaller\pip-wheel-metadata\PyInstaller.egg-info\SOURCES.txt' creating 'C:\Users\中国人\AppData\Local\Temp\pip-install-gwisi993\pyinstaller\pip-wheel-metadata\PyInstaller.dist-info' error: invalid command 'bdist_wheel' ----------------------------------------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' prepare_metadata_for_build_wheel 'C:\Users\中国人\AppData\Local\Temp\tmpphdaei3e' Check the logs for full command output.如何解决?

多试几次,网速不好经常出现这种情况,我当时试了十几次才成功。 参考技术A 很有可能是因为你的路径带中文,最好把python重装下安装到不含中文的路径 参考技术B 要想命令提示符下载wheel 参考技术C 简单的,没问题!追问

为什么出现这个

参考技术D 换一种安装方法

Python中使用pip安装一些库时出现ERROR

ERROR: No matching distribution found for tensorflow的情况
这可能是因为网络的问题,这时我们使用国内的镜像源来加速
输入命令:python -m pip install requests(如果你安装的是别的库,请输入别的库名) -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com
这时就安装成功了。

以上是关于python的pip安装pyinstalle时出现红色代码,安装错误,怎么办?的主要内容,如果未能解决你的问题,请参考以下文章

python的工具pip进行安装时出现 No module named 'pip'

安装 pip install gearman 时出现 Python 3.6 错误

python:使用pip安装时出现Fatal error in launcher错误

Python使用pip安装第三方库时出现的问题

Python中使用pip安装一些库时出现ERROR

安装Python环境之“安装 setuptools ”时出现的问题以及解决办法