Art*_*cía 3 python pyinstaller
我使用pyinstaller从python脚本制作aa .exe它输出得很好但是当我尝试执行时出现这个错误。
File "PyInstaller/loader/rthooks/pyi_rth_pkgres.py", line 13, in <module>
File "/home/arturo/.local/lib/python3.6/site-packages/PyInstaller/loader/pyimod03_importers.py", line 623, in exec_module
exec(bytecode, module.__dict__)
File "pkg_resources/__init__.py", line 86, in <module>
ModuleNotFoundError: No module named 'pkg_resources.py2_warn'
[25405] Failed to execute script pyi_rth_pkgres
Run Code Online (Sandbox Code Playgroud)
我已经重新安装了setuptools。
小智 10
感谢您的解决方案。它在 Windows 10/python 3.7.2 上对我有用:
pip uninstall pyinstaller
pip install https://github.com/pyinstaller/pyinstaller/archive/develop.zip
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
4112 次 |
| 最近记录: |