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.

ImportError: No module named 'pip._vendor.requests'

See original GitHub issue

I 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:closed
  • Created 9 years ago
  • Comments:26 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
screwtcommented, Feb 13, 2015

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.

2reactions
betterenvicommented, Feb 2, 2015

I encountered same problem on my CentsOS. After steps below, this issue was fixed:

  1. yum install openssl_devel 2)recompile python: make && make install. Maybe useful to you.
Read more comments on GitHub >

github_iconTop 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 >

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