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'











share|improve this question
























  • 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










  • 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








  • 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















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'











share|improve this question
























  • 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










  • 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








  • 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













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'











share|improve this question















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






share|improve this question















share|improve this question













share|improve this question




share|improve this question








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












  • 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




    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


















  • 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










  • 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








  • 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
















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

















active

oldest

votes











Your Answer






StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














 

draft saved


draft discarded


















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






























active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes
















 

draft saved


draft discarded



















































 


draft saved


draft discarded














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





















































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







Popular posts from this blog

Berounka

Sphinx de Gizeh

Different font size/position of beamer's navigation symbols template's content depending on regular/plain...