错误信息
- 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.
- Cannot uninstall ‘wrapt’. 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.
- Cannot uninstall ‘enum34’. 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.
- Cannot uninstall ‘simplejson’. 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.
- Cannot uninstall ‘netaddr’. 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.
以上5中情况都是因为版本不必配造成的。
解决方法:
pip install -U --ignore-installed wrapt enum34 simplejson netaddr numpy
本文解决了在使用pip卸载numpy、wrapt等Python包时遇到的错误问题,提供了具体的命令来更新并忽略已安装的包,避免了因版本不匹配导致的卸载不完全。
2382

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



