鱼C论坛

 找回密码
 立即注册
查看: 1559|回复: 11

[已解决]pip pyinstaller报错

[复制链接]
发表于 2020-3-30 09:10:48 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能^_^

您需要 登录 才可以下载或查看,没有账号?立即注册

x
本帖最后由 一个账号 于 2020-3-30 09:17 编辑

安装时cmd表现

  1. C:\Users\池林溪>pip install pyinstaller -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com
  2. Looking in indexes: http://pypi.douban.com/simple/
  3. Collecting pyinstaller
  4.   Downloading http://pypi.doubanio.com/packages/3c/c9/c3f9bc64eb11eee6a824686deba6129884c8cbdf70e750661773b9865ee0/PyInstaller-3.6.tar.gz (3.5MB)
  5.      |████████████████████████████████| 3.5MB 819kB/s
  6.   Installing build dependencies ... done
  7.   Getting requirements to build wheel ... done
  8.     Preparing wheel metadata ... error
  9.     ERROR: Command errored out with exit status 1:
  10.      command: 'c:\users\池林溪\appdata\local\programs\python\python38-32\python.exe' 'c:\users\池林溪\appdata\local\programs\python\python38-32\lib\site-packages\pip\_vendor\pep517\_in_process.py' prepare_metadata_for_build_wheel 'C:\Users\池林溪\AppData\Local\Temp\tmplsnzsjw4'
  11.          cwd: C:\Users\池林溪\AppData\Local\Temp\pip-install-f7dr0o4y\pyinstaller
  12.     Complete output (36 lines):
  13.     running dist_info
  14.     creating C:\Users\池林溪\AppData\Local\Temp\pip-install-f7dr0o4y\pyinstaller\pip-wheel-metadata\PyInstaller.egg-info
  15.     writing C:\Users\池林溪\AppData\Local\Temp\pip-install-f7dr0o4y\pyinstaller\pip-wheel-metadata\PyInstaller.egg-info\PKG-INFO
  16.     writing dependency_links to C:\Users\池林溪\AppData\Local\Temp\pip-install-f7dr0o4y\pyinstaller\pip-wheel-metadata\PyInstaller.egg-info\dependency_links.txt
  17.     writing entry points to C:\Users\池林溪\AppData\Local\Temp\pip-install-f7dr0o4y\pyinstaller\pip-wheel-metadata\PyInstaller.egg-info\entry_points.txt
  18.     writing requirements to C:\Users\池林溪\AppData\Local\Temp\pip-install-f7dr0o4y\pyinstaller\pip-wheel-metadata\PyInstaller.egg-info\requires.txt
  19.     writing top-level names to C:\Users\池林溪\AppData\Local\Temp\pip-install-f7dr0o4y\pyinstaller\pip-wheel-metadata\PyInstaller.egg-info\top_level.txt
  20.     writing manifest file 'C:\Users\池林溪\AppData\Local\Temp\pip-install-f7dr0o4y\pyinstaller\pip-wheel-metadata\PyInstaller.egg-info\SOURCES.txt'
  21.     reading manifest file 'C:\Users\池林溪\AppData\Local\Temp\pip-install-f7dr0o4y\pyinstaller\pip-wheel-metadata\PyInstaller.egg-info\SOURCES.txt'
  22.     reading manifest template 'MANIFEST.in'
  23.     Error in sitecustomize; set PYTHONVERBOSE for traceback:
  24.     SyntaxError: (unicode error) 'utf-8' codec can't decode byte 0xb3 in position 0: invalid start byte (sitecustomize.py, line 7)
  25.     no previously-included directories found matching 'bootloader\build'
  26.     no previously-included directories found matching 'bootloader\.waf-*'
  27.     no previously-included directories found matching 'bootloader\.waf3-*'
  28.     no previously-included directories found matching 'bootloader\waf-*'
  29.     no previously-included directories found matching 'bootloader\waf3-*'
  30.     no previously-included directories found matching 'bootloader\_sdks'
  31.     no previously-included directories found matching 'bootloader\.vagrant'
  32.     warning: no previously-included files found matching 'bootloader\.lock-waf*'
  33.     no previously-included directories found matching 'doc\source'
  34.     no previously-included directories found matching 'doc\_build'
  35.     warning: no previously-included files matching '*.tmp' found under directory 'doc'
  36.     warning: no files found matching 'news\_template.rst'
  37.     no previously-included directories found matching 'news'
  38.     no previously-included directories found matching 'old'
  39.     no previously-included directories found matching 'scripts'
  40.     no previously-included directories found matching 'tests\scripts'
  41.     no previously-included directories found matching '.github'
  42.     warning: no previously-included files found matching '.*'
  43.     warning: no previously-included files found matching '*.yml'
  44.     warning: no previously-included files found matching '*~'
  45.     warning: no previously-included files found matching '.directory'
  46.     writing manifest file 'C:\Users\池林溪\AppData\Local\Temp\pip-install-f7dr0o4y\pyinstaller\pip-wheel-metadata\PyInstaller.egg-info\SOURCES.txt'
  47.     creating 'C:\Users\池林溪\AppData\Local\Temp\pip-install-f7dr0o4y\pyinstaller\pip-wheel-metadata\PyInstaller.dist-info'
  48.     error: invalid command 'bdist_wheel'
  49.     ----------------------------------------
  50. ERROR: Command errored out with exit status 1: 'c:\users\池林溪\appdata\local\programs\python\python38-32\python.exe' 'c:\users\池林溪\appdata\local\programs\python\python38-32\lib\site-packages\pip\_vendor\pep517\_in_process.py' prepare_metadata_for_build_wheel 'C:\Users\池林溪\AppData\Local\Temp\tmplsnzsjw4' Check the logs for full command output.
  51. WARNING: You are using pip version 19.2.3, however version 20.0.2 is available.
  52. You should consider upgrading via the 'python -m pip install --upgrade pip' command.
复制代码


哪位大佬知道怎么做?
最佳答案
2020-3-30 09:18:15
你先用这段命令安装wheel,
然后去https://www.lfd.uci.edu/~gohlke/pythonlibs/
找你想要的模块,然后
  1. pip install whl文件名
复制代码
小甲鱼最新课程 -> https://ilovefishc.com
回复

使用道具 举报

发表于 2020-3-30 09:17:13 | 显示全部楼层
在 cmd 执行以下命令再安装:

  1. python -m pip install --upgrade pip
复制代码
小甲鱼最新课程 -> https://ilovefishc.com
回复 支持 反对

使用道具 举报

发表于 2020-3-30 09:18:15 | 显示全部楼层    本楼为最佳答案   
你先用这段命令安装wheel,
然后去https://www.lfd.uci.edu/~gohlke/pythonlibs/
找你想要的模块,然后
  1. pip install whl文件名
复制代码
小甲鱼最新课程 -> https://ilovefishc.com
回复 支持 反对

使用道具 举报

 楼主| 发表于 2020-3-30 09:32:45 | 显示全部楼层
一个账号 发表于 2020-3-30 09:17
在 cmd 执行以下命令再安装:

我试了,还是报错
小甲鱼最新课程 -> https://ilovefishc.com
回复 支持 反对

使用道具 举报

 楼主| 发表于 2020-3-30 09:35:04 | 显示全部楼层
qiuyouzhi 发表于 2020-3-30 09:18
你先用这段命令安装wheel,
然后去https://www.lfd.uci.edu/~gohlke/pythonlibs/
找你想要的模块,然后


我没有在网页(https://www.lfd.uci.edu/~gohlke/pythonlibs/)中找到pyinstaller
小甲鱼最新课程 -> https://ilovefishc.com
回复 支持 反对

使用道具 举报

发表于 2020-3-30 09:42:00 | 显示全部楼层
溪水叮咚 发表于 2020-3-30 09:35
我没有在网页(https://www.lfd.uci.edu/~gohlke/pythonlibs/)中找到pyinstaller

那恐怕是你眼睛不好:
https://download.lfd.uci.edu/pythonlibs/s2jqpv5t/PyInstaller-3.6-py2.py3-none-any.whl
小甲鱼最新课程 -> https://ilovefishc.com
回复 支持 反对

使用道具 举报

 楼主| 发表于 2020-3-30 09:44:38 | 显示全部楼层
qiuyouzhi 发表于 2020-3-30 09:42
那恐怕是你眼睛不好:
https://download.lfd.uci.edu/pythonlibs/s2jqpv5t/PyInstaller-3.6-py2.py3-non ...

我可能瞎了
小甲鱼最新课程 -> https://ilovefishc.com
回复 支持 反对

使用道具 举报

发表于 2020-3-30 09:44:58 | 显示全部楼层
小甲鱼最新课程 -> https://ilovefishc.com
回复 支持 反对

使用道具 举报

 楼主| 发表于 2020-3-30 09:51:56 | 显示全部楼层
qiuyouzhi 发表于 2020-3-30 09:42
那恐怕是你眼睛不好:
https://download.lfd.uci.edu/pythonlibs/s2jqpv5t/PyInstaller-3.6-py2.py3-non ...

还是不行
小甲鱼最新课程 -> https://ilovefishc.com
回复 支持 反对

使用道具 举报

发表于 2020-3-30 09:52:40 | 显示全部楼层

截个图?
https://imgchr.com
小甲鱼最新课程 -> https://ilovefishc.com
回复 支持 反对

使用道具 举报

 楼主| 发表于 2020-3-30 09:57:50 | 显示全部楼层
qiuyouzhi 发表于 2020-3-30 09:52
截个图?
https://imgchr.com

谢谢,我搞定了
小甲鱼最新课程 -> https://ilovefishc.com
回复 支持 反对

使用道具 举报

发表于 2020-3-30 09:58:29 | 显示全部楼层

嗯嗯!
小甲鱼最新课程 -> https://ilovefishc.com
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

小黑屋|手机版|Archiver|鱼C工作室 ( 粤ICP备18085999号-1 | 粤公网安备 44051102000585号)

GMT+8, 2025-6-9 22:19

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表