VlachosGroup / pMuTT

Python Multiscale Thermochemistry Toolbox (pMuTT)
https://vlachosgroup.github.io/pMuTT/
40 stars 23 forks source link

Cannot uninstall 'PyYAML' when updating pMuTT #132

Closed jonlym closed 4 years ago

jonlym commented 4 years ago

When @wittregr tried to update pMuTT to 1.2.15, he received the following error:

(base) wittregr@gerhard-ubuntu2:~$ pip install --upgrade pmutt ... Installing collected packages: PyYAML, pmutt Found existing installation: PyYAML 5.1.2 ERROR: Cannot uninstall 'PyYAML'. 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.

jonlym commented 4 years ago

This seems to be a common issue, as stated here. Unfortunately, this has to be solved from PyYAML's end. The workaround is to append the --ignore-installed flag to the pip command.

i.e. pip install pmutt --ignore-installed PyYAML