question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ModuleNotFoundError: No module named 'pip._internal'

See original GitHub issue

Maintainer note: Anyone that still gets this issue please see #5599.


  • Pip version: 10.0.1
  • Python version: 3.6.5-2
  • Operating system: 4.16.3-1-ARCH

Description:

sudo pip install --upgrade pip using 9.0.1-3.

$ pip3 -V          
Traceback (most recent call last):
  File "/usr/bin/pip3", line 7, in <module>
    from pip._internal import main
ModuleNotFoundError: No module named 'pip._internal'

What (other) I’ve run:

curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
python3 get-pip.py --force-reinstall

# Back to 9.0.1-3
pacman -Sy --force python-pip
pip uninstall pip
python3 get-pip.py

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:21
  • Comments:28 (7 by maintainers)

github_iconTop GitHub Comments

177reactions
duhaimecommented, Oct 23, 2019

I hit the same snag and just reinstalled pip:

sudo easy_install pip
77reactions
yurmchgcommented, Feb 4, 2019

This worked for me: python3 -m pip install --user --upgrade pip

Read more comments on GitHub >

github_iconTop Results From Across the Web

pip: no module named _internal - python - Stack Overflow
@WayBehind I did found a solution. I noticed that using python -m pip everything works just fine. Beside that, I removed the file...
Read more >
Pip is not working: ImportError: No module named 'pip._internal'
Ok, I found out why, if from pip._internal import main error happen, in my solution, 1) curl https://bootstrap.pypa.io/get-pip.py ...
Read more >
ModuleNotFoundError: No module named 'pip' in Python
The Python "ModuleNotFoundError: No module named 'pip'" occurs when pip is not installed in our Python environment. To solve the error, ...
Read more >
ModuleNotFoundError: No module named 'pip._internal'
ModuleNotFoundError No module named pip internal - Explains how to resolve this error on linux virtual environment.
Read more >
[Fixed] ModuleNotFoundError: No module named 'pip' - Finxter
How to Fix “ModuleNotFoundError: No module named 'pip'” in PyCharm · Open File > Settings > Project from the PyCharm menu. · Select...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found