Skip to content

Instantly share code, notes, and snippets.

@sailfish009
Created February 5, 2020 01:49
Show Gist options
  • Save sailfish009/ef19d702bc6595bb67b2df0f1ae67539 to your computer and use it in GitHub Desktop.
Save sailfish009/ef19d702bc6595bb67b2df0f1ae67539 to your computer and use it in GitHub Desktop.
pip install --ignore-installed ${PACKAGE_NAME}
ex)
$ pip3 uninstall httplib2
Found existing installation: httplib2 0.9.2
ERROR: Cannot uninstall 'httplib2'. 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.
$ pip3 install --ignore-installed httplib2
Collecting httplib2
Using cached httplib2-0.17.0-py3-none-any.whl (95 kB)
ERROR: launchpadlib 1.10.6 requires testresources, which is not installed.
Installing collected packages: httplib2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment