无法卸载“ pandas”(已安装distutils的项目) [英] Cannot uninstall 'pandas' (distutils installed project)
问题描述
我创建了一个conda环境,用于安装所有需要的东西。
I have created a conda environment where I am installing all the stuff I need.
我已经安装了 pandas
库,但是我需要将其升级到最新版本。
I already had installed the pandas
library, but I need to upgrade it to the latest version.
但是,当我尝试 pip3 install --upgrade pandas
我收到以下错误:
However, when I try pip3 install --upgrade pandas
I get the following error:
Found existing installation: pandas 0.15.2
Cannot uninstall 'pandas'. 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.
我已经尝试过 sudo apt-get remove pandas
,但这会提示我找不到熊猫软件包。
I have tried sudo apt-get remove pandas
, but this get me a message saying that the pandas package cannot be found.
如果相关,我在Ubuntu 16.04中使用python 3.6.3
In case is relevant, I am in Ubuntu 16.04 and using python 3.6.3
推荐答案
尽管我无法重现该错误,但是您可以尝试:
Though I'm unable to reproduce the error, you can try:
1)降低版本
pip install --upgrade --force-reinstall pip==18.0
尝试重新安装软件包
pip install xxx --disable-pip-version-check
最后,恢复最新版本pip版本
At last, recover the latest version for pip
pip install --upgrade pip
2)点安装-I == 18.0 -r requirements.txt
3)尝试从站点程序包中手动删除
3) Try removing manually from 'site-packages'
找到了这些解决方案此处
这篇关于无法卸载“ pandas”(已安装distutils的项目)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!