Cannot uninstall 'numpy'. It is a distutils installed project and thus we cannot accurately determin

python2.7 下使用pip安装软件经常遇到numpy版本过低问题,使用pipip2  uninstall numpy或   pip2  install numpy==1.13.3  --no-deps --force-reinstall 均报出错误“Cannot uninstall 'numpy'. 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.”

解决办法

pip2 install --upgrade numpy --user python 将正确安装最新版numpy

pip install numpy --ignore-installed numpy 也会正确安装到最新版本,但是旧版本感觉还存在。

pip install numpy =1.7.1

 
参考文章:https://blog.csdn.net/lwhsyit/article/details/86701070 

 

 

你可能感兴趣的:(python)