ImportError: No module named 'pip._vendor.requests' for python3
up vote
3
down vote
favorite
Have installed pip3 via sudo apt-get. But while trying to check the pip3 --version, its throwing
ImportError: No module named 'pip._vendor.requests'
How do i fix this?
server -- Linux Debian 4.9.65-3,
Python version -- Python 3.5.3
p.s. have tried uninstalling and reinstalling pip3 but no luck.
Full stack trace:-
Traceback (most recent call last): File "/usr/bin/pip3", line 9, in
from pip import main File "/usr/lib/python3/dist-packages/pip/init.py", line 21, in
from pip._vendor.requests.packages.urllib3.exceptions import DependencyWarning ImportError: No module named 'pip._vendor.requests'
python python-3.x pip
|
show 9 more comments
up vote
3
down vote
favorite
Have installed pip3 via sudo apt-get. But while trying to check the pip3 --version, its throwing
ImportError: No module named 'pip._vendor.requests'
How do i fix this?
server -- Linux Debian 4.9.65-3,
Python version -- Python 3.5.3
p.s. have tried uninstalling and reinstalling pip3 but no luck.
Full stack trace:-
Traceback (most recent call last): File "/usr/bin/pip3", line 9, in
from pip import main File "/usr/lib/python3/dist-packages/pip/init.py", line 21, in
from pip._vendor.requests.packages.urllib3.exceptions import DependencyWarning ImportError: No module named 'pip._vendor.requests'
python python-3.x pip
Related: github.com/pypa/pip/issues/2345
– 9769953
Nov 21 at 8:43
The last comment to that issue suggests this could be caused by usingsudo
in front ofpip3
. Which is slightly odd, and shouldn't really be the case.
– 9769953
Nov 21 at 8:44
have checked the same(github)..but didn't work for me. I am working in prod env and do not have root access.. hence have to use sudo
– Soubhik Banerjee
Nov 21 at 8:44
Try the following: 1/ uninstallpip3
, 2/ Verify there is a valid Python 3 on your system (python3 --version
; let us know which version), 3/ Try usingpython3 -m pip --version
, 3b/ try the same again withsudo
prepended, 4/ Use pip as runnable module: (sudo
)python3 -m pip <whatever command>
.
– 9769953
Nov 21 at 8:46
1
NB: Python 3.5.3 is getting old, so support for and compatibility with up-to-date versions ofpip
may be limited.
– 9769953
Nov 21 at 8:58
|
show 9 more comments
up vote
3
down vote
favorite
up vote
3
down vote
favorite
Have installed pip3 via sudo apt-get. But while trying to check the pip3 --version, its throwing
ImportError: No module named 'pip._vendor.requests'
How do i fix this?
server -- Linux Debian 4.9.65-3,
Python version -- Python 3.5.3
p.s. have tried uninstalling and reinstalling pip3 but no luck.
Full stack trace:-
Traceback (most recent call last): File "/usr/bin/pip3", line 9, in
from pip import main File "/usr/lib/python3/dist-packages/pip/init.py", line 21, in
from pip._vendor.requests.packages.urllib3.exceptions import DependencyWarning ImportError: No module named 'pip._vendor.requests'
python python-3.x pip
Have installed pip3 via sudo apt-get. But while trying to check the pip3 --version, its throwing
ImportError: No module named 'pip._vendor.requests'
How do i fix this?
server -- Linux Debian 4.9.65-3,
Python version -- Python 3.5.3
p.s. have tried uninstalling and reinstalling pip3 but no luck.
Full stack trace:-
Traceback (most recent call last): File "/usr/bin/pip3", line 9, in
from pip import main File "/usr/lib/python3/dist-packages/pip/init.py", line 21, in
from pip._vendor.requests.packages.urllib3.exceptions import DependencyWarning ImportError: No module named 'pip._vendor.requests'
python python-3.x pip
python python-3.x pip
edited Nov 21 at 12:06
asked Nov 21 at 8:38
Soubhik Banerjee
779
779
Related: github.com/pypa/pip/issues/2345
– 9769953
Nov 21 at 8:43
The last comment to that issue suggests this could be caused by usingsudo
in front ofpip3
. Which is slightly odd, and shouldn't really be the case.
– 9769953
Nov 21 at 8:44
have checked the same(github)..but didn't work for me. I am working in prod env and do not have root access.. hence have to use sudo
– Soubhik Banerjee
Nov 21 at 8:44
Try the following: 1/ uninstallpip3
, 2/ Verify there is a valid Python 3 on your system (python3 --version
; let us know which version), 3/ Try usingpython3 -m pip --version
, 3b/ try the same again withsudo
prepended, 4/ Use pip as runnable module: (sudo
)python3 -m pip <whatever command>
.
– 9769953
Nov 21 at 8:46
1
NB: Python 3.5.3 is getting old, so support for and compatibility with up-to-date versions ofpip
may be limited.
– 9769953
Nov 21 at 8:58
|
show 9 more comments
Related: github.com/pypa/pip/issues/2345
– 9769953
Nov 21 at 8:43
The last comment to that issue suggests this could be caused by usingsudo
in front ofpip3
. Which is slightly odd, and shouldn't really be the case.
– 9769953
Nov 21 at 8:44
have checked the same(github)..but didn't work for me. I am working in prod env and do not have root access.. hence have to use sudo
– Soubhik Banerjee
Nov 21 at 8:44
Try the following: 1/ uninstallpip3
, 2/ Verify there is a valid Python 3 on your system (python3 --version
; let us know which version), 3/ Try usingpython3 -m pip --version
, 3b/ try the same again withsudo
prepended, 4/ Use pip as runnable module: (sudo
)python3 -m pip <whatever command>
.
– 9769953
Nov 21 at 8:46
1
NB: Python 3.5.3 is getting old, so support for and compatibility with up-to-date versions ofpip
may be limited.
– 9769953
Nov 21 at 8:58
Related: github.com/pypa/pip/issues/2345
– 9769953
Nov 21 at 8:43
Related: github.com/pypa/pip/issues/2345
– 9769953
Nov 21 at 8:43
The last comment to that issue suggests this could be caused by using
sudo
in front of pip3
. Which is slightly odd, and shouldn't really be the case.– 9769953
Nov 21 at 8:44
The last comment to that issue suggests this could be caused by using
sudo
in front of pip3
. Which is slightly odd, and shouldn't really be the case.– 9769953
Nov 21 at 8:44
have checked the same(github)..but didn't work for me. I am working in prod env and do not have root access.. hence have to use sudo
– Soubhik Banerjee
Nov 21 at 8:44
have checked the same(github)..but didn't work for me. I am working in prod env and do not have root access.. hence have to use sudo
– Soubhik Banerjee
Nov 21 at 8:44
Try the following: 1/ uninstall
pip3
, 2/ Verify there is a valid Python 3 on your system (python3 --version
; let us know which version), 3/ Try using python3 -m pip --version
, 3b/ try the same again with sudo
prepended, 4/ Use pip as runnable module: (sudo
) python3 -m pip <whatever command>
.– 9769953
Nov 21 at 8:46
Try the following: 1/ uninstall
pip3
, 2/ Verify there is a valid Python 3 on your system (python3 --version
; let us know which version), 3/ Try using python3 -m pip --version
, 3b/ try the same again with sudo
prepended, 4/ Use pip as runnable module: (sudo
) python3 -m pip <whatever command>
.– 9769953
Nov 21 at 8:46
1
1
NB: Python 3.5.3 is getting old, so support for and compatibility with up-to-date versions of
pip
may be limited.– 9769953
Nov 21 at 8:58
NB: Python 3.5.3 is getting old, so support for and compatibility with up-to-date versions of
pip
may be limited.– 9769953
Nov 21 at 8:58
|
show 9 more comments
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53408080%2fimporterror-no-module-named-pip-vendor-requests-for-python3%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Related: github.com/pypa/pip/issues/2345
– 9769953
Nov 21 at 8:43
The last comment to that issue suggests this could be caused by using
sudo
in front ofpip3
. Which is slightly odd, and shouldn't really be the case.– 9769953
Nov 21 at 8:44
have checked the same(github)..but didn't work for me. I am working in prod env and do not have root access.. hence have to use sudo
– Soubhik Banerjee
Nov 21 at 8:44
Try the following: 1/ uninstall
pip3
, 2/ Verify there is a valid Python 3 on your system (python3 --version
; let us know which version), 3/ Try usingpython3 -m pip --version
, 3b/ try the same again withsudo
prepended, 4/ Use pip as runnable module: (sudo
)python3 -m pip <whatever command>
.– 9769953
Nov 21 at 8:46
1
NB: Python 3.5.3 is getting old, so support for and compatibility with up-to-date versions of
pip
may be limited.– 9769953
Nov 21 at 8:58