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._vendor' after upgrading pip

See original GitHub issue

Environment

  • pip version:19.0.1
  • Python version:3.7
  • windows:10

Description After upgraded, pip can not be used. It produced the error "ModuleNotFoundError: No module named ‘pip._vendor’ "

What I have run

> pip
Traceback(most recent call last):
  File "D:\python\Scripts\pip-script.py", line 11, in <module>
    load_entry_point('pip==19.0.2', 'console_scripts', 'pip')()
  File "d:\python\lib\site-packages\pkg_resources\__init__.py", line 480, in load_entry_point
    return get_distribution(dist).load_entry_point(group, name)
  File "d:\python\lib\site-packages\pkg_resources\__init__.py", line 2693, in load_entry_point
    return ep.load()
  File "d:\python\lib\site-packages\pkg_resources\__init__.py", line 2324, in load
    return self.resolve()
  File "d:\python\lib\site-packages\pkg_resources\__init__.py", line 2330, in resolve
    module = __import__(self.module_name, fromlist=['__name__'], level=0)
  File "d:\python\lib\site-packages\pip\_internal\__init__.py", line 19, in <module>
    from pip._vendor.urllib3.exceptions import DependencyWarning
ModuleNotFoundError: No module named `'pip._vendor'

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:4
  • Comments:12 (3 by maintainers)

github_iconTop GitHub Comments

24reactions
CDuPlooycommented, Feb 19, 2019

I did the following on linux;

rm -rf /usr/lib/python3.7/site-packages
python3.7 -m ensurepip
pip install --upgrade pip

Hopefully it helps someone!

5reactions
gavindsouzacommented, Mar 23, 2019

On 5.0.3-arch1-1-ARCH with pip-19.0.3

I fixed the issue by

  1. Uninstalling pip and removing related files using the package manager yay -Rscn python-pip

  2. followed it by an install using the package manager (pip-18.1) yay -S python-pip

  3. Followed by a upgrade pip, from the installed pip-18.1 to pip-19.0.3 pip install --upgrade pip

Read more comments on GitHub >

github_iconTop Results From Across the Web

No module named 'pip._vendor.six' · Issue #4804 · pypa/pipenv
When I try installing any package I get the following error: ➜ pipenv install requests ... ModuleNotFoundError: No module named 'pip.
Read more >
pip3 install not working - No module named 'pip._vendor ...
Un-installing and re-installing pip3 using the following code: sudo apt-get remove python3-pip followed by sudo apt-get install python3-pip .
Read more >
ModuleNotFoundError: No module named 'pip._vendor.six'
I was getting ModuleNotFoundError: No module named 'pip._vendor.six' errors when running Django app on Ubuntu 20.04 LTS with pipenv.
Read more >
No module named pip._vendor.pkg_resources | bobbyhadz
The "ModuleNotFoundError: No module named 'pip._vendor.pkg_resources'" is caused when pip is not installed or is outdated, most commonly on ...
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_iconTop Related StackOverflow Question

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