pip安装报错:ERROR: Could not build wheels for psutil;cannot import name packaging from pkg_resources
·
pip安装报错:ERROR: Could not build wheels for psutil
参考:https://github.com/giampaolo/psutil/issues/1143
报错:psutil/_psutil_common.c:9:10: fatal error: Python.h: No such file or directory
我这里ubuntu系统
解决方法:依据自己python版本安装,比如这里3.7版本,如果只是安装python3-dev是没有效果
sudo apt install python3.7-dev
pip3 install psutil
ImportError: cannot import name ‘packaging‘ from ‘p
参考:https://blog.csdn.net/Vikanill/article/details/139338358
检查setuptools是否为70.0.0版本
pip list | grep setuptools
降低版本
python -m pip install setuptools==69.5.1

更多推荐
所有评论(0)