在使用pip install 时出现的问题:
....
Attempting uninstall: llvmlite
Found existing installation: llvmlite 0.23.1
ERROR: Cannot uninstall 'llvmlite'. 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.
我用的python3.6, pip的版本是 20.0.2
$ pip --version
pip 20.0.2 from /anaconda3/lib/python3.6/site-packages/pip (python 3.6)
解决办法:
pip install --ignore-installed llvmlite
然后再pip install你要装的包。
【万能语法】如果以后遇到ERROR: Cannot uninstall [pacakage]. It is a distutils installed project...
类似错误,就可以先使用pip install --ignore-installed [package]
后,再装。