Skip to content

Instantly share code, notes, and snippets.

@sureshshrestha
Created October 26, 2018 12:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sureshshrestha/46e658fde7a4971622d374c48b26e381 to your computer and use it in GitHub Desktop.
Save sureshshrestha/46e658fde7a4971622d374c48b26e381 to your computer and use it in GitHub Desktop.
pip issue fix for 'ImportError: No module named _internal'
Error:
Traceback (most recent call last):
File "/usr/local/bin/pip", line 7, in <module>
from pip._internal import main
ImportError: No module named _internal
Fix:
$ sudo rm /usr/local/bin/pip*
$ sudo apt remove python-pip
$ sudo apt install python-pip
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment