ImportError: No module named 'pip._vendor.requests'
See original GitHub issueI installed python 2.7.5 and run python get-pip.py, system come out this error: Traceback (most recent call last):
File "get-pip.py", line 19892, in <module>
main()
File "get-pip.py", line 152, in main
bootstrap(tmpdir=tmpdir)
File "get-pip.py", line 82, in bootstrap
import pip
File "/tmp/tmpwUQJB5/pip.zip/pip/__init__.py", line 15, in <module>
File "/tmp/tmpwUQJB5/pip.zip/pip/vcs/mercurial.py", line 11, in <module>
File "/tmp/tmpwUQJB5/pip.zip/pip/download.py", line 30, in <module>
File "/tmp/tmpwUQJB5/pip.zip/pip/_vendor/__init__.py", line 81, in load_module
ImportError: No module named 'pip._vendor.requests'
Issue Analytics
- State:
- Created 9 years ago
- Comments:26 (2 by maintainers)
Top Results From Across the Web
pip3 install not working - No module named 'pip._vendor ...
Now the pip3 command fails ( ImportError: cannot import name 'main' ) because it's still called from the old ... No module named...
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 >python - ImportError: No module named 'pip._vendor.packaging'
I am using Ubuntu 21.10. I get this error: (foobar_addressbook) guettli@p15:~/foobar/projects/foobar_addressbook$ tox -e py35-django18 py35- ...
Read more >[Fixed] ModuleNotFoundError: No module named 'pip' - Finxter
Quick Fix: Python raises the ImportError: No module named 'pip' when it cannot find the library pip . The most frequent source of...
Read more >No module named 'pip._vendor.requests.exceptions'
6/site-packages/pip/_vendor/ && sudo mv requests requests.bak`, I can successfully import pip._vendor.requests.exceptions in the Python console.
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
Same issue here with ubuntu. 12.04, upgrading system packages fixed it:
$ sudo pip install -U requests $ sudo pip install -U pip
EDIT : Issue still there in deed… investigating
EDIT : ok, a complete requests uninstall and install back via pip fixed the issue.
I encountered same problem on my CentsOS. After steps below, this issue was fixed: