【pip install】ERROR: Cannot uninstall ‘xx’. It is a distutils installed project 的解决办法
在使用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.
解决办法:
pip install --ignore-installed llvmlite
然后再pip install你要装的包。
【万能语法】如果以后遇到ERROR: Cannot uninstall [pacakage]. It is a distutils installed project…类似错误,就可以先使用pip install --ignore-installed [package]后,再装。