Ubuntu中pip的疑难杂症

“ERROR: Cannot uninstall 'psutil'. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall.”解决办法

// 方法一:到目录下找到*psutil*.egg-info,然后删掉即可
// 我的位置在~/anaconda3/lib/python3.6/site-packages/psutil-5.4.3-py3.6.egg-info
// 类似问题均可这样解决
find ~/anaconda3/ -name "*psutil*"
rm -rf ~/anaconda3/lib/python3.6/site-packages/psutil-5.4.3-py3.6.egg-info
// 方法二:
//强制升级某一个模块
sudo pip install --ignore-installed psutil

 

posted @ 2019-09-03 21:50  叶小雨  阅读(792)  评论(0编辑  收藏  举报