错误描述:
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.
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in C:\Users\zyn\AppData\Local\Temp\pip-install-l2lr3u71\sklearn\
此时,通过pip list查看安装的setuptools的版本,如果不是19.2则卸载重装即可
解决办法步骤:
输入pip uninstall setuptools
pip install setuptools==19.2
然后重新安装原本要安装的模块或者包即可
本文详细介绍了当遇到Python包安装失败,特别是由于'setuptools'版本不匹配导致的问题时的解决步骤。通过卸载并重新安装特定版本的'setuptools',可以有效解决因依赖冲突引发的安装错误。
3667

被折叠的 条评论
为什么被折叠?



