pyinstaller ImportError: The 'packaging' package is required; ...
来源:互联网 发布:php ob get contents 编辑:程序博客网 时间:2024/05/17 22:58
运行python2.6.6上使用pyinstaller打包的应用程序报错ImportError: The ‘packaging’ package is required; normally this is bundled with this package so if you get this warning, consult the packager of your distribution.
问题描述
运行python2.6.6上使用pyinstaller打包的应用程序报下面的错误
Traceback (most recent call last): File "<string>", line 11, in <module> File "c:\python27\Lib\site-packages\PyInstaller\loader\pyimod03_importers.py", line 389, in load_module exec(bytecode, module.__diact__) File "site-packages\pkg_resources\__init__.py", line 74, in <module> File "site-packages\pkg_resources\extern\__init__.py", line 60, in load_moduleImportError: The 'packaging' package is required; normally this is bundled with this package so if you get this warning, consult the packager of your distribution.pyi_rth_pkgres returned -1
解决办法
使用 pip list 查看已经安装的包,发现是setuptools包的版本太高,环境里的setuptools版本是20.x.x。
果断卸载并安装低版本的setuptools(19.2),如下:
pip uninstall setuptoolspip install setuptools==19.2
重新打包python脚本再运行,问题解决。
2 0
- pyinstaller ImportError: The 'packaging' package is required; ...
- ImportError: The Python Imaging Library (PIL) is required to load data from jpeg files
- Instant Client package is required for Baic and TNS connection
- Instant Client package is required for Baic and TNS connection
- ImportError: No module named packaging.version
- ImportError: No module named packaging.version
- 当使用phpize的时候出现Can't find PHP headers in /usr/include/php The php-devel package is required for use o
- Python报错:Visual C++ is required和ImportError: DLL load failed
- Packaging on the Web
- Pyinstaller : ImportError: No module named pefile
- Pyinstaller Python ImportError: No module named publisher
- python PIL ImportError: The _imagingft C module is not installed
- ImportError: The _imagingft C module is not installed
- ImportError: The _imagingft C module is not installed
- ImportError: The _imagingft C module is not installed
- ImportError: The _imagingft C module is not installed
- there is a problem parsing the package
- Ubuntu--The package system is broken
- **从今天开始利用博客记录自己的学习经历~!**
- 抽象类与接口的典型应用:猫狗案例,加入调高的额外功能
- 安卓按比例布局,layout_weight用法、合用weightSum属性和layout_weight属性
- 【Android】Share via whatsapp
- iOS学习笔记12--纯代码实现原生UITabBarController,手势滑动切换视图
- pyinstaller ImportError: The 'packaging' package is required; ...
- ORACLE常用sql语句
- CATransform3D 特效详解(关于图层的几个坐标系)
- perl 爬取同花顺数据
- linux HTB 队列限速
- Linux 下多线程排序的实现
- scoi小凸玩矩阵 匈牙利+二分
- 交叉编译openssl-1.0.0e
- Windows Dev Intro - Error to String