ModuleNotFoundError: No module named 'pip._vendor' after upgrading pip
See original GitHub issueEnvironment
- 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:
- Created 5 years ago
- Reactions:4
- Comments:12 (3 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I did the following on linux;
Hopefully it helps someone!
On
5.0.3-arch1-1-ARCH
withpip-19.0.3
I fixed the issue by
Uninstalling pip and removing related files using the package manager
yay -Rscn python-pip
followed it by an install using the package manager (pip-18.1)
yay -S python-pip
Followed by a upgrade pip, from the installed pip-18.1 to pip-19.0.3
pip install --upgrade pip