鱼C论坛

 找回密码
 立即注册
查看: 1708|回复: 2

[已解决]pyinstaller安装不了肿么办

[复制链接]
发表于 2020-2-16 14:39:22 | 显示全部楼层 |阅读模式

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

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

x
今天想打包一下我的程序,然后就想安装下pyinstaller,结果……
  1. C:\WINDOWS\system32>pip install Pyinstaller
  2. Collecting Pyinstaller
  3.   Using cached PyInstaller-3.6.tar.gz (3.5 MB)
  4.   Installing build dependencies ... done
  5.   Getting requirements to build wheel ... done
  6.     Preparing wheel metadata ... error
  7.     ERROR: Command errored out with exit status 1:
  8.      command: 'd:\软件\python\python.exe' 'd:\软件\python\lib\site-packages\pip\_vendor\pep517\_in_process.py' prepare_metadata_for_build_wheel 'C:\Users\15822\AppData\Local\Temp\tmp5t823zu2'
  9.          cwd: C:\Users\15822\AppData\Local\Temp\pip-install-lwvqmtii\Pyinstaller
  10.     Complete output (36 lines):
  11.     running dist_info
  12.     creating C:\Users\15822\AppData\Local\Temp\pip-modern-metadata-shhsayke\PyInstaller.egg-info
  13.     writing C:\Users\15822\AppData\Local\Temp\pip-modern-metadata-shhsayke\PyInstaller.egg-info\PKG-INFO
  14.     writing dependency_links to C:\Users\15822\AppData\Local\Temp\pip-modern-metadata-shhsayke\PyInstaller.egg-info\dependency_links.txt
  15.     writing entry points to C:\Users\15822\AppData\Local\Temp\pip-modern-metadata-shhsayke\PyInstaller.egg-info\entry_points.txt
  16.     writing requirements to C:\Users\15822\AppData\Local\Temp\pip-modern-metadata-shhsayke\PyInstaller.egg-info\requires.txt
  17.     writing top-level names to C:\Users\15822\AppData\Local\Temp\pip-modern-metadata-shhsayke\PyInstaller.egg-info\top_level.txt
  18.     writing manifest file 'C:\Users\15822\AppData\Local\Temp\pip-modern-metadata-shhsayke\PyInstaller.egg-info\SOURCES.txt'
  19.     reading manifest file 'C:\Users\15822\AppData\Local\Temp\pip-modern-metadata-shhsayke\PyInstaller.egg-info\SOURCES.txt'
  20.     reading manifest template 'MANIFEST.in'
  21.     Error in sitecustomize; set PYTHONVERBOSE for traceback:
  22.     SyntaxError: (unicode error) 'utf-8' codec can't decode byte 0xc8 in position 0: invalid continuation byte (sitecustomize.py, line 7)
  23.     no previously-included directories found matching 'bootloader\build'
  24.     no previously-included directories found matching 'bootloader\.waf-*'
  25.     no previously-included directories found matching 'bootloader\.waf3-*'
  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\_sdks'
  29.     no previously-included directories found matching 'bootloader\.vagrant'
  30.     warning: no previously-included files found matching 'bootloader\.lock-waf*'
  31.     no previously-included directories found matching 'doc\source'
  32.     no previously-included directories found matching 'doc\_build'
  33.     warning: no previously-included files matching '*.tmp' found under directory 'doc'
  34.     warning: no files found matching 'news\_template.rst'
  35.     no previously-included directories found matching 'news'
  36.     no previously-included directories found matching 'old'
  37.     no previously-included directories found matching 'scripts'
  38.     no previously-included directories found matching 'tests\scripts'
  39.     no previously-included directories found matching '.github'
  40.     warning: no previously-included files found matching '.*'
  41.     warning: no previously-included files found matching '*.yml'
  42.     warning: no previously-included files found matching '*~'
  43.     warning: no previously-included files found matching '.directory'
  44.     writing manifest file 'C:\Users\15822\AppData\Local\Temp\pip-modern-metadata-shhsayke\PyInstaller.egg-info\SOURCES.txt'
  45.     creating 'C:\Users\15822\AppData\Local\Temp\pip-modern-metadata-shhsayke\PyInstaller.dist-info'
  46.     error: invalid command 'bdist_wheel'
  47.     ----------------------------------------
  48. ERROR: Command errored out with exit status 1: 'd:\软件\python\python.exe' 'd:\软件\python\lib\site-packages\pip\_vendor\pep517\_in_process.py' prepare_metadata_for_build_wheel 'C:\Users\15822\AppData\Local\Temp\tmp5t823zu2' Check the logs for full command output.
复制代码
最佳答案
2020-2-16 15:48:19
先 pip install wheel 再安装 Pyinstaller
小甲鱼最新课程 -> https://ilovefishc.com
回复

使用道具 举报

发表于 2020-2-16 15:06:23 | 显示全部楼层
python版本是3.8的话用这个装
  1. pip install https://github.com/pyinstaller/pyinstaller/archive/develop.tar.gz
复制代码
小甲鱼最新课程 -> https://ilovefishc.com
回复 支持 反对

使用道具 举报

发表于 2020-2-16 15:48:19 | 显示全部楼层    本楼为最佳答案   
先 pip install wheel 再安装 Pyinstaller
小甲鱼最新课程 -> https://ilovefishc.com
回复 支持 反对

使用道具 举报

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

本版积分规则

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

GMT+8, 2026-3-3 02:08

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

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