pyinstaller打包报错 No module named pkg_resources.py2_warn

【打包功能解析:https://blog.csdn.net/infent/article/details/84976312】

原因:据说打包工具pyinstaller在python3.5以上打包容易出错,建议使用python3.5,而目前使用的是anaconda3.7,有一些隐式调用而程序并没有import,导致报没有模块的错误,一般“pip install”相对应的包就行,如果不行就在打包信息文件.sepc中的“hiddenimports”填入对应的模块名

解决:hiddenimports=['pkg_resources.py2_warn']

你可能感兴趣的:(python,python)