py程式是在pycharm里寫的并運行成功,pyinstaller打包程式沒有報錯,但是運行程式是報出以下錯誤資訊,網上查了半天讓注釋__init__.py檔案的第86行 ,但是我的這個檔案里面86行根本沒有任何東西,所以請各位給看看到底是什么地方出錯了呢
Traceback (most recent call last):
File "C:\Python38\Lib\site-packages\PyInstaller\loader\rthooks\pyi_rth_pkgres.py", line 13, in <module>
import pkg_resources as res
File "c:\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 86, in <module>
ModuleNotFoundError: No module named 'pkg_resources.py2_warn'
[13576] Failed to execute script pyi_rth_pkgres
uj5u.com熱心網友回復:
我的python版本是3.8.2轉載請註明出處,本文鏈接:https://www.uj5u.com/qita/52686.html
