聂嘉辉 发表于 2020-8-21 19:34:53

pyinstaller报错!

pyinstaller 打包后运行.exe文件提示:failed to excute script pyi_rth_pkgres

sunrise085 发表于 2020-8-21 19:46:55

应该是你安装的pyinstaller有问题
先现在原来的pyinstaller
再从GitHub重新安装pyinstaller

pip uninstall pyinstaller
pip install https://github.com/pyinstaller/pyinstaller/archive/develop.zip

聂嘉辉 发表于 2020-8-21 19:59:00

没用

Twilight6 发表于 2020-8-21 20:04:17

你打包时候不带 -w ,然后看下终端显示的报错是什么

聂嘉辉 发表于 2020-8-21 20:18:31

Traceback (most recent call last):
File "C:\Users\DELL\AppData\Local\Programs\Python\Python38\Lib\site-packages\PyInstaller\loader\rthooks\pyi_rth_pkgres.py", line 13, in <module>
    import pkg_resources as res
File "c:\users\dell\appdata\local\programs\python\python38\lib\site-packages\PyInstaller\loader\pyimod03_importers.py", line 623, in exec_module
    exec(bytecode, module.__dict__)
File "site-packages\pkg_resources\__init__.py", line 83, in <module>
File "site-packages\pkg_resources\extern\__init__.py", line 57, in load_module
ImportError: The 'packaging.specifiers' package is required; normally this is bundled with this package so if you get this warning, consult the packager of your distribution.
Failed to execute script pyi_rth_pkgres

永恒的蓝色梦想 发表于 2020-8-21 20:21:25

聂嘉辉 发表于 2020-8-21 20:18
Traceback (most recent call last):
File "C:%users\DELL\AppData\Local\Programs\Python\Python38\Lib ...

还没解决就设最佳{:10_277:}

聂嘉辉 发表于 2020-8-21 20:28:24

这种错误我会

liuzhengyuan 发表于 2020-8-21 20:34:12

聂嘉辉 发表于 2020-8-21 20:28
这种错误我会

你不点回复,别人看不见
页: [1]
查看完整版本: pyinstaller报错!