可能是因为PyInstaller打包时没有正确处理依赖关系,可以尝试在spec文件中添加webencodings的路径,例如:

hiddenimports=['webencodings'], datas=[('path/to/webencodings', 'webencodings')]

其中datas参数用于将webencodings的路径添加到打包后的文件中。如果仍然无法解决问题,可以尝试使用其他打包工具或手动安装webencodings。

python用pyinstaller打包成exe后执行报以下错但我已经安装了html5lib和webencodings并在spec文件中将html5lib和webencodings都加入hiddenimports了怎么解决?Traceback most recent call last File GetZhaiQuanFunddfpy line 12 in module File DAnaco

原文地址: https://www.cveoy.top/t/topic/dSfs 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录