ERROR: Cannot uninstall ‘Cython’. 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
报错的原因:
无法准确确定属于该文件的文件,这只会导致部分卸载。
一般是你安装的版本是新版的,需要uninstall旧版的,但是由于直接使用pip uninstall+ 库名 不能对其完全卸载,所以最粗暴的方法就是把旧版的文件直接删掉。
解决方法:进入/usr/local/lib/python3.6/dist-packages,找到相应的旧版文件,直接删掉就完事。
比如我遇到的这个问题:ERROR: Cannot uninstall cython.
进入site-packages,找到Cython-0.26.1.egg-info、cython.py与Cython这一文件,直接删掉再重装就ok