打包工具篇选择
pyinstaller配置
pip install installer
- setuptools(打包后提示:
ModuleNotFoundError: No module named 'pkg_resources.py2_warn'
)- 解决方式1:在源码中引入包
import pkg_resources.py2_warn
- 解决方式2:降低版本
pip uninstall setuptools
pip install setuptools==44.0.0
pip install update setuptools==44.0.0
- 解决方式1:在源码中引入包
- 优点
- 缺点
- 缺乏隐式包,解决方案之一就是主动包含