Cannot upgrade pip behind proxy
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}
I've tried all the suggestions in this other question, but it just isn't working for me: Unable to upgrade pip
I'm running Ubuntu 12.04, and was able to install pip 1.0 using apt
, but that version apparently has a bug which doesn't play nice with proxies, so I don't know how I can update it.
Here's what I'm getting in my console:
$ pip --version
pip 1.0 from /usr/lib/python2.7/dist-packages (python 2.7)
$ which pip
/usr/local/bin/pip
try #1
$ pip --proxy=$http_proxy install -U pip
Downloading/unpacking pip
Cannot fetch index base URL http://pypi.python.org/simple/
Could not find any downloads that satisfy the requirement pip
No distributions at all found for pip
Storing complete log in /home/falconer_k/.pip/pip.log
try #2
$ python ~/Downloads/get-pip.py --proxy=$http_proxy
/usr/lib/python2.7/dist-packages/setuptools/command/install_scripts.py:3:
UserWarning: Module pip was already imported from
/tmp/tmpqbetIm/pip.zip/pip/__init__.py, but /usr/lib/python2.7/dist-packages
is being added to sys.path from pkg_resources import Distribution, PathMetadata, ensure_directory
Retrying (Retry(total=4, connect=None, read=None, redirect=None)) after
connection broken by 'ProxyError('Cannot connect to proxy.',
NewConnectionError('<pip._vendor.requests.packages.urllib3.connection.Verified
HTTPSConnection object at 0x392eed0>: Failed to establish a new connection:
[Errno -2] Name or service not known',))': /simple/pip/
I can access the simple/pip
folder directly using the browser:
https://pypi.python.org/simple/pip/
I also don't have the option to use a non-proxied connection.
Here's the contents of ~/.pip/pip.log:
------------------------------------------------------------
/usr/bin/pip run on Tue May 3 15:33:22 2016
Downloading/unpacking pip
Getting page http://pypi.python.org/simple/pip
Could not fetch URL http://pypi.python.org/simple/pip: timed out
Will skip URL http://pypi.python.org/simple/pip when looking for download links for pip
Getting page http://pypi.python.org/simple/
Could not fetch URL http://pypi.python.org/simple/: <urlopen error [Errno 113] No route to host>
Will skip URL http://pypi.python.org/simple/ when looking for download links for pip
Cannot fetch index base URL http://pypi.python.org/simple/
URLs to search for versions for pip:
* http://pypi.python.org/simple/pip/
Getting page http://pypi.python.org/simple/pip/
Could not fetch URL http://pypi.python.org/simple/pip/: <urlopen error [Errno 113] No route to host>
Will skip URL http://pypi.python.org/simple/pip/ when looking for download links for pip
Could not find any downloads that satisfy the requirement pip
No distributions at all found for pip
Exception information:
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/pip/basecommand.py", line 126, in main
self.run(options, args)
File "/usr/lib/python2.7/dist-packages/pip/commands/install.py", line 223, in run
requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, bundle=self.bundle)
File "/usr/lib/python2.7/dist-packages/pip/req.py", line 948, in prepare_files
url = finder.find_requirement(req_to_install, upgrade=self.upgrade)
File "/usr/lib/python2.7/dist-packages/pip/index.py", line 152, in find_requirement
raise DistributionNotFound('No distributions at all found for %s' % req)
DistributionNotFound: No distributions at all found for pip
python proxy pip
bumped to the homepage by Community♦ 12 mins ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
add a comment |
I've tried all the suggestions in this other question, but it just isn't working for me: Unable to upgrade pip
I'm running Ubuntu 12.04, and was able to install pip 1.0 using apt
, but that version apparently has a bug which doesn't play nice with proxies, so I don't know how I can update it.
Here's what I'm getting in my console:
$ pip --version
pip 1.0 from /usr/lib/python2.7/dist-packages (python 2.7)
$ which pip
/usr/local/bin/pip
try #1
$ pip --proxy=$http_proxy install -U pip
Downloading/unpacking pip
Cannot fetch index base URL http://pypi.python.org/simple/
Could not find any downloads that satisfy the requirement pip
No distributions at all found for pip
Storing complete log in /home/falconer_k/.pip/pip.log
try #2
$ python ~/Downloads/get-pip.py --proxy=$http_proxy
/usr/lib/python2.7/dist-packages/setuptools/command/install_scripts.py:3:
UserWarning: Module pip was already imported from
/tmp/tmpqbetIm/pip.zip/pip/__init__.py, but /usr/lib/python2.7/dist-packages
is being added to sys.path from pkg_resources import Distribution, PathMetadata, ensure_directory
Retrying (Retry(total=4, connect=None, read=None, redirect=None)) after
connection broken by 'ProxyError('Cannot connect to proxy.',
NewConnectionError('<pip._vendor.requests.packages.urllib3.connection.Verified
HTTPSConnection object at 0x392eed0>: Failed to establish a new connection:
[Errno -2] Name or service not known',))': /simple/pip/
I can access the simple/pip
folder directly using the browser:
https://pypi.python.org/simple/pip/
I also don't have the option to use a non-proxied connection.
Here's the contents of ~/.pip/pip.log:
------------------------------------------------------------
/usr/bin/pip run on Tue May 3 15:33:22 2016
Downloading/unpacking pip
Getting page http://pypi.python.org/simple/pip
Could not fetch URL http://pypi.python.org/simple/pip: timed out
Will skip URL http://pypi.python.org/simple/pip when looking for download links for pip
Getting page http://pypi.python.org/simple/
Could not fetch URL http://pypi.python.org/simple/: <urlopen error [Errno 113] No route to host>
Will skip URL http://pypi.python.org/simple/ when looking for download links for pip
Cannot fetch index base URL http://pypi.python.org/simple/
URLs to search for versions for pip:
* http://pypi.python.org/simple/pip/
Getting page http://pypi.python.org/simple/pip/
Could not fetch URL http://pypi.python.org/simple/pip/: <urlopen error [Errno 113] No route to host>
Will skip URL http://pypi.python.org/simple/pip/ when looking for download links for pip
Could not find any downloads that satisfy the requirement pip
No distributions at all found for pip
Exception information:
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/pip/basecommand.py", line 126, in main
self.run(options, args)
File "/usr/lib/python2.7/dist-packages/pip/commands/install.py", line 223, in run
requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, bundle=self.bundle)
File "/usr/lib/python2.7/dist-packages/pip/req.py", line 948, in prepare_files
url = finder.find_requirement(req_to_install, upgrade=self.upgrade)
File "/usr/lib/python2.7/dist-packages/pip/index.py", line 152, in find_requirement
raise DistributionNotFound('No distributions at all found for %s' % req)
DistributionNotFound: No distributions at all found for pip
python proxy pip
bumped to the homepage by Community♦ 12 mins ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
I was able to do this by tethering my internet connection to my laptop, then sharing that connection over ethernet to this machine to do the update usingpip install -U pip
. I'll leave it up in case someone else comes up against this.
– Kyle Falconer
May 4 '16 at 16:56
add a comment |
I've tried all the suggestions in this other question, but it just isn't working for me: Unable to upgrade pip
I'm running Ubuntu 12.04, and was able to install pip 1.0 using apt
, but that version apparently has a bug which doesn't play nice with proxies, so I don't know how I can update it.
Here's what I'm getting in my console:
$ pip --version
pip 1.0 from /usr/lib/python2.7/dist-packages (python 2.7)
$ which pip
/usr/local/bin/pip
try #1
$ pip --proxy=$http_proxy install -U pip
Downloading/unpacking pip
Cannot fetch index base URL http://pypi.python.org/simple/
Could not find any downloads that satisfy the requirement pip
No distributions at all found for pip
Storing complete log in /home/falconer_k/.pip/pip.log
try #2
$ python ~/Downloads/get-pip.py --proxy=$http_proxy
/usr/lib/python2.7/dist-packages/setuptools/command/install_scripts.py:3:
UserWarning: Module pip was already imported from
/tmp/tmpqbetIm/pip.zip/pip/__init__.py, but /usr/lib/python2.7/dist-packages
is being added to sys.path from pkg_resources import Distribution, PathMetadata, ensure_directory
Retrying (Retry(total=4, connect=None, read=None, redirect=None)) after
connection broken by 'ProxyError('Cannot connect to proxy.',
NewConnectionError('<pip._vendor.requests.packages.urllib3.connection.Verified
HTTPSConnection object at 0x392eed0>: Failed to establish a new connection:
[Errno -2] Name or service not known',))': /simple/pip/
I can access the simple/pip
folder directly using the browser:
https://pypi.python.org/simple/pip/
I also don't have the option to use a non-proxied connection.
Here's the contents of ~/.pip/pip.log:
------------------------------------------------------------
/usr/bin/pip run on Tue May 3 15:33:22 2016
Downloading/unpacking pip
Getting page http://pypi.python.org/simple/pip
Could not fetch URL http://pypi.python.org/simple/pip: timed out
Will skip URL http://pypi.python.org/simple/pip when looking for download links for pip
Getting page http://pypi.python.org/simple/
Could not fetch URL http://pypi.python.org/simple/: <urlopen error [Errno 113] No route to host>
Will skip URL http://pypi.python.org/simple/ when looking for download links for pip
Cannot fetch index base URL http://pypi.python.org/simple/
URLs to search for versions for pip:
* http://pypi.python.org/simple/pip/
Getting page http://pypi.python.org/simple/pip/
Could not fetch URL http://pypi.python.org/simple/pip/: <urlopen error [Errno 113] No route to host>
Will skip URL http://pypi.python.org/simple/pip/ when looking for download links for pip
Could not find any downloads that satisfy the requirement pip
No distributions at all found for pip
Exception information:
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/pip/basecommand.py", line 126, in main
self.run(options, args)
File "/usr/lib/python2.7/dist-packages/pip/commands/install.py", line 223, in run
requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, bundle=self.bundle)
File "/usr/lib/python2.7/dist-packages/pip/req.py", line 948, in prepare_files
url = finder.find_requirement(req_to_install, upgrade=self.upgrade)
File "/usr/lib/python2.7/dist-packages/pip/index.py", line 152, in find_requirement
raise DistributionNotFound('No distributions at all found for %s' % req)
DistributionNotFound: No distributions at all found for pip
python proxy pip
I've tried all the suggestions in this other question, but it just isn't working for me: Unable to upgrade pip
I'm running Ubuntu 12.04, and was able to install pip 1.0 using apt
, but that version apparently has a bug which doesn't play nice with proxies, so I don't know how I can update it.
Here's what I'm getting in my console:
$ pip --version
pip 1.0 from /usr/lib/python2.7/dist-packages (python 2.7)
$ which pip
/usr/local/bin/pip
try #1
$ pip --proxy=$http_proxy install -U pip
Downloading/unpacking pip
Cannot fetch index base URL http://pypi.python.org/simple/
Could not find any downloads that satisfy the requirement pip
No distributions at all found for pip
Storing complete log in /home/falconer_k/.pip/pip.log
try #2
$ python ~/Downloads/get-pip.py --proxy=$http_proxy
/usr/lib/python2.7/dist-packages/setuptools/command/install_scripts.py:3:
UserWarning: Module pip was already imported from
/tmp/tmpqbetIm/pip.zip/pip/__init__.py, but /usr/lib/python2.7/dist-packages
is being added to sys.path from pkg_resources import Distribution, PathMetadata, ensure_directory
Retrying (Retry(total=4, connect=None, read=None, redirect=None)) after
connection broken by 'ProxyError('Cannot connect to proxy.',
NewConnectionError('<pip._vendor.requests.packages.urllib3.connection.Verified
HTTPSConnection object at 0x392eed0>: Failed to establish a new connection:
[Errno -2] Name or service not known',))': /simple/pip/
I can access the simple/pip
folder directly using the browser:
https://pypi.python.org/simple/pip/
I also don't have the option to use a non-proxied connection.
Here's the contents of ~/.pip/pip.log:
------------------------------------------------------------
/usr/bin/pip run on Tue May 3 15:33:22 2016
Downloading/unpacking pip
Getting page http://pypi.python.org/simple/pip
Could not fetch URL http://pypi.python.org/simple/pip: timed out
Will skip URL http://pypi.python.org/simple/pip when looking for download links for pip
Getting page http://pypi.python.org/simple/
Could not fetch URL http://pypi.python.org/simple/: <urlopen error [Errno 113] No route to host>
Will skip URL http://pypi.python.org/simple/ when looking for download links for pip
Cannot fetch index base URL http://pypi.python.org/simple/
URLs to search for versions for pip:
* http://pypi.python.org/simple/pip/
Getting page http://pypi.python.org/simple/pip/
Could not fetch URL http://pypi.python.org/simple/pip/: <urlopen error [Errno 113] No route to host>
Will skip URL http://pypi.python.org/simple/pip/ when looking for download links for pip
Could not find any downloads that satisfy the requirement pip
No distributions at all found for pip
Exception information:
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/pip/basecommand.py", line 126, in main
self.run(options, args)
File "/usr/lib/python2.7/dist-packages/pip/commands/install.py", line 223, in run
requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, bundle=self.bundle)
File "/usr/lib/python2.7/dist-packages/pip/req.py", line 948, in prepare_files
url = finder.find_requirement(req_to_install, upgrade=self.upgrade)
File "/usr/lib/python2.7/dist-packages/pip/index.py", line 152, in find_requirement
raise DistributionNotFound('No distributions at all found for %s' % req)
DistributionNotFound: No distributions at all found for pip
python proxy pip
python proxy pip
edited Apr 13 '17 at 12:23
Community♦
1
1
asked May 3 '16 at 22:44
Kyle FalconerKyle Falconer
11615
11615
bumped to the homepage by Community♦ 12 mins ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
bumped to the homepage by Community♦ 12 mins ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
I was able to do this by tethering my internet connection to my laptop, then sharing that connection over ethernet to this machine to do the update usingpip install -U pip
. I'll leave it up in case someone else comes up against this.
– Kyle Falconer
May 4 '16 at 16:56
add a comment |
I was able to do this by tethering my internet connection to my laptop, then sharing that connection over ethernet to this machine to do the update usingpip install -U pip
. I'll leave it up in case someone else comes up against this.
– Kyle Falconer
May 4 '16 at 16:56
I was able to do this by tethering my internet connection to my laptop, then sharing that connection over ethernet to this machine to do the update using
pip install -U pip
. I'll leave it up in case someone else comes up against this.– Kyle Falconer
May 4 '16 at 16:56
I was able to do this by tethering my internet connection to my laptop, then sharing that connection over ethernet to this machine to do the update using
pip install -U pip
. I'll leave it up in case someone else comes up against this.– Kyle Falconer
May 4 '16 at 16:56
add a comment |
1 Answer
1
active
oldest
votes
Just try the below
pip install --proxy=user:pass@server:port <package Name>
for example
pip install --proxy=http://10.10.10.150/accelerated_pac_base.pac quandl
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "89"
};
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',
autoActivateHeartbeat: false,
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
});
}
});
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%2faskubuntu.com%2fquestions%2f767157%2fcannot-upgrade-pip-behind-proxy%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
Just try the below
pip install --proxy=user:pass@server:port <package Name>
for example
pip install --proxy=http://10.10.10.150/accelerated_pac_base.pac quandl
add a comment |
Just try the below
pip install --proxy=user:pass@server:port <package Name>
for example
pip install --proxy=http://10.10.10.150/accelerated_pac_base.pac quandl
add a comment |
Just try the below
pip install --proxy=user:pass@server:port <package Name>
for example
pip install --proxy=http://10.10.10.150/accelerated_pac_base.pac quandl
Just try the below
pip install --proxy=user:pass@server:port <package Name>
for example
pip install --proxy=http://10.10.10.150/accelerated_pac_base.pac quandl
answered Jan 8 '18 at 11:47
Mahmoud AtallahMahmoud Atallah
11
11
add a comment |
add a comment |
Thanks for contributing an answer to Ask Ubuntu!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
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%2faskubuntu.com%2fquestions%2f767157%2fcannot-upgrade-pip-behind-proxy%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
I was able to do this by tethering my internet connection to my laptop, then sharing that connection over ethernet to this machine to do the update using
pip install -U pip
. I'll leave it up in case someone else comes up against this.– Kyle Falconer
May 4 '16 at 16:56