from pip._internal import main ImportError: No module named 'pip._internal'" /> from pip._internal import main ImportError: No module named 'pip._internal' - 秒客网" />

[err]Traceback (most recent call last): File "/usr/local/bin/pip", line 7, in from pip._internal import main ImportError: No module named 'pip._internal'

时间:2022-01-17 17:32:36
Q:
Traceback (most recent call last):
File "/usr/local/bin/pip", line 7, in <module>
from pip._internal import main
ImportError: No module named 'pip._internal'
A:
re:

Apply these three steps:

    1. Go to /usr/local/bin by terminal
    2. Execute sudo gedit pip
    3. Change the from pip._internal import main into from pip import main.