pip error: "ModuleNotFoundError: No module named 'pip._internal'"
Nov 06, 2018 asked by anonymous
Question / Issue:
When running "$ sudo -H pip3 install <python package>" we received the following error: Traceback (most recent call last): File "/usr/local/bin/pip3", line 7, in <module> from pip._internal import main ModuleNotFoundError: No module named 'pip._internal'
Date: Nov. 6, 2018
Author: Mind Chasers
A good reference for this issue can be found here: https://github.com/pypa/pip/issues/5373 However, for us it seems it was due to us having a conflict between a local pip3 install and a system installed python3: $ which pip3 /usr/local/bin/pip3 $ which python3 /usr/bin/python3 We removed /usr/local/bin/pip3 and pip3 worked fine (again).