鱼C论坛

 找回密码
 立即注册
查看: 1328|回复: 3

[已解决]Pyinstaller安装报错怎么办?

[复制链接]
发表于 2020-2-4 10:38:03 | 显示全部楼层 |阅读模式

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

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

x
Pyinstaller安装报错
C:\Windows\system32>pip install pyinstaller
Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple
Collecting pyinstaller
  Using cached https://pypi.tuna.tsinghua.edu.c ... nstaller-3.6.tar.gz (3.5 MB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
    Preparing wheel metadata ... error
    ERROR: Command errored out with exit status 1:
     command: 'c:\program files (x86)\python37-32\python.exe' 'c:\program files (x86)\python37-32\lib\site-packages\pip\_vendor\pep517\_in_process.py' prepare_metadata_for_build_wheel 'C:\Users\凛霜祈月\AppData\Local\Temp\tmpn22gd16w'
         cwd: C:\Users\凛霜祈月\AppData\Local\Temp\pip-install-qrbb_40w\pyinstaller
    Complete output (36 lines):
    running dist_info
    creating C:\Users\凛霜祈月\AppData\Local\Temp\pip-modern-metadata-pzpwf0t9\PyInstaller.egg-info
    writing C:\Users\凛霜祈月\AppData\Local\Temp\pip-modern-metadata-pzpwf0t9\PyInstaller.egg-info\PKG-INFO
    writing dependency_links to C:\Users\凛霜祈月\AppData\Local\Temp\pip-modern-metadata-pzpwf0t9\PyInstaller.egg-info\dependency_links.txt
    writing entry points to C:\Users\凛霜祈月\AppData\Local\Temp\pip-modern-metadata-pzpwf0t9\PyInstaller.egg-info\entry_points.txt
    writing requirements to C:\Users\凛霜祈月\AppData\Local\Temp\pip-modern-metadata-pzpwf0t9\PyInstaller.egg-info\requires.txt
    writing top-level names to C:\Users\凛霜祈月\AppData\Local\Temp\pip-modern-metadata-pzpwf0t9\PyInstaller.egg-info\top_level.txt
    writing manifest file 'C:\Users\凛霜祈月\AppData\Local\Temp\pip-modern-metadata-pzpwf0t9\PyInstaller.egg-info\SOURCES.txt'
    reading manifest file 'C:\Users\凛霜祈月\AppData\Local\Temp\pip-modern-metadata-pzpwf0t9\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 0xc1 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\凛霜祈月\AppData\Local\Temp\pip-modern-metadata-pzpwf0t9\PyInstaller.egg-info\SOURCES.txt'
    creating 'C:\Users\凛霜祈月\AppData\Local\Temp\pip-modern-metadata-pzpwf0t9\PyInstaller.dist-info'
    error: invalid command 'bdist_wheel'
    ----------------------------------------
ERROR: Command errored out with exit status 1: 'c:\program files (x86)\python37-32\python.exe' 'c:\program files (x86)\python37-32\lib\site-packages\pip\_vendor\pep517\_in_process.py' prepare_metadata_for_build_wheel 'C:\Users\凛霜祈月\AppData\Local\Temp\tmpn22gd16w' Check the logs for full command output.

最佳答案
2020-2-4 12:44:50
请先安装 wheel(pip install wheel)再安装 Pyinstaller。
小甲鱼最新课程 -> https://ilovefishc.com
回复

使用道具 举报

发表于 2020-2-4 12:36:06 | 显示全部楼层
是用pip安装的吗?
小甲鱼最新课程 -> https://ilovefishc.com
回复 支持 反对

使用道具 举报

发表于 2020-2-4 12:44:50 | 显示全部楼层    本楼为最佳答案   
请先安装 wheel(pip install wheel)再安装 Pyinstaller。
小甲鱼最新课程 -> https://ilovefishc.com
回复 支持 反对

使用道具 举报

 楼主| 发表于 2020-2-4 13:41:41 | 显示全部楼层
zltzlt 发表于 2020-2-4 12:44
请先安装 wheel(pip install wheel)再安装 Pyinstaller。

感谢大佬的帮助
小甲鱼最新课程 -> https://ilovefishc.com
回复 支持 反对

使用道具 举报

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

本版积分规则

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

GMT+8, 2026-3-4 04:19

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

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