IBM / clai

Command Line Artificial Intelligence or CLAI is an open-sourced project from IBM Research aimed to bring the power of AI to the command line interface.
https://clai-home.mybluemix.net/
MIT License
478 stars 75 forks source link

Setting appropriate flag for pip install #10

Closed twinstar26 closed 4 years ago

twinstar26 commented 4 years ago

Describe the bug When install.sh hits the line python3 -m pip install -r requirements.txt, the following pip install error message pops up. ERROR: 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. For my particular case wrapt was causing problems but can be any other package.

To Reproduce Steps to reproduce the behavior:

  1. Hit $ sudo ./install.sh on terminal.

shell and OS (please complete the following information):

Additional context pip cannot properly remove packages installed by "pure" distutils, because distutils doesn't record enough metadata for us to do so. If you installed a package using distutils, you need to manage (and in particular) uninstall it "using distutils". Unfortunately distutils doesn't include an uninstall command, so "uninstall using distutils" means manually removing the package.

This issue can be solved by using --ignore-installed flag. Some users have also temporarily resolved by using --user flag. But --ignore-installed worked for me.

twinstar26 commented 4 years ago

Also I would like to contribute to this project by having this PR.

TathagataChakraborti commented 4 years ago

Thanks @twinstar26 for raising this! 👍 💯

Feel free to raise a PR into master, we will review and merge when you have it. Thanks!