{"action":"created","issue":{"url":"https://api.github.com/repos/pypa/pip/issues/1805","labels_url":"https://api.github.com/repos/pypa/pip/issues/1805/labels{/name}","comments_url":"https://api.github.com/repos/pypa/pip/issues/1805/comments","events_url":"https://api.github.com/repos/pypa/pip/issues/1805/events","html_url":"https://github.com/pypa/pip/issues/1805","id":33073582,"number":1805,"title":"pip doesn't respect proxy while installing packages from requirements file","user":{"login":"shredder12","id":490551,"avatar_url":"https://avatars.githubusercontent.com/u/490551?v=3","gravatar_id":"","url":"https://api.github.com/users/shredder12","html_url":"https://github.com/shredder12","followers_url":"https://api.github.com/users/shredder12/followers","following_url":"https://api.github.com/users/shredder12/following{/other_user}","gists_url":"https://api.github.com/users/shredder12/gists{/gist_id}","starred_url":"https://api.github.com/users/shredder12/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shredder12/subscriptions","organizations_url":"https://api.github.com/users/shredder12/orgs","repos_url":"https://api.github.com/users/shredder12/repos","events_url":"https://api.github.com/users/shredder12/events{/privacy}","received_events_url":"https://api.github.com/users/shredder12/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":63,"created_at":"2014-05-08T10:55:44Z","updated_at":"2015-08-11T16:01:33Z","closed_at":"2015-05-05T22:20:36Z","body":"I'm using pip 1.5.5 on python 2.7.6, CentOS 6.5 x86_64. Python is compiled and installed in /usr/local/. While trying to install packages from requirements file, the first 12 packages are being downloaded via proxy, but after that pip tries to directly connect to the server instead of proxy and request fails.\r\n\r\n$ export https_proxy=http://proxy:8080\r\n$ /usr/local/bin/pip2.7 install -r reqs.txt\r\n\r\nThis results in download of first 12 packages via proxy, but the next one is a direct HTTPS request to the pypi server. I've validated this via packet trace and proxy logs.\r\n\r\nNote that, the installation works flawlessly using /usr/bin/pip, v1.3.1.\r\n\r\nThoughts?"},"comment":{"url":"https://api.github.com/repos/pypa/pip/issues/comments/129947293","html_url":"https://github.com/pypa/pip/issues/1805#issuecomment-129947293","issue_url":"https://api.github.com/repos/pypa/pip/issues/1805","id":129947293,"user":{"login":"AndiEcker","id":3755886,"avatar_url":"https://avatars.githubusercontent.com/u/3755886?v=3","gravatar_id":"","url":"https://api.github.com/users/AndiEcker","html_url":"https://github.com/AndiEcker","followers_url":"https://api.github.com/users/AndiEcker/followers","following_url":"https://api.github.com/users/AndiEcker/following{/other_user}","gists_url":"https://api.github.com/users/AndiEcker/gists{/gist_id}","starred_url":"https://api.github.com/users/AndiEcker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AndiEcker/subscriptions","organizations_url":"https://api.github.com/users/AndiEcker/orgs","repos_url":"https://api.github.com/users/AndiEcker/repos","events_url":"https://api.github.com/users/AndiEcker/events{/privacy}","received_events_url":"https://api.github.com/users/AndiEcker/received_events","type":"User","site_admin":false},"created_at":"2015-08-11T16:01:33Z","updated_at":"2015-08-11T16:01:33Z","body":"I also get this problem from within our company Windows network with different versions of pip.\r\n\r\n\r\n## Using pip 6.0.8 from C:\\Python34\\lib\\site-packages (python 3.4) I get this output on the console:\r\n\r\n```\r\nC:\\src\\set>c:\\Python34\\Scripts\\pip.exe install cx_Freeze\r\nCollecting cx-Freeze\r\n  Retrying (Retry(total=4, connect=None, read=None, redirect=None)) after connec\r\ntion broken by 'ProxyError('Cannot connect to proxy.', OSError('Tunnel connectio\r\nn failed: 407 Proxy Authentication Required ( The ISA Server requires authorizat\r\nion to fulfill the request. Access to the Web Proxy filter is denied.  )',))': /\r\nsimple/cx-freeze/\r\n  Retrying (Retry(total=3, connect=None, read=None, redirect=None)) after connec\r\ntion broken by 'ProxyError('Cannot connect to proxy.', OSError('Tunnel connectio\r\nn failed: 407 Proxy Authentication Required ( The ISA Server requires authorizat\r\nion to fulfill the request. Access to the Web Proxy filter is denied.  )',))': /\r\nsimple/cx-freeze/\r\n  Retrying (Retry(total=2, connect=None, read=None, redirect=None)) after connec\r\ntion broken by 'ProxyError('Cannot connect to proxy.', OSError('Tunnel connectio\r\nn failed: 407 Proxy Authentication Required ( The ISA Server requires authorizat\r\nion to fulfill the request. Access to the Web Proxy filter is denied.  )',))': /\r\nsimple/cx-freeze/\r\n  Retrying (Retry(total=1, connect=None, read=None, redirect=None)) after connec\r\ntion broken by 'ProxyError('Cannot connect to proxy.', OSError('Tunnel connectio\r\nn failed: 407 Proxy Authentication Required ( The ISA Server requires authorizat\r\nion to fulfill the request. Access to the Web Proxy filter is denied.  )',))': /\r\nsimple/cx-freeze/\r\n  Retrying (Retry(total=0, connect=None, read=None, redirect=None)) after connec\r\ntion broken by 'ProxyError('Cannot connect to proxy.', OSError('Tunnel connectio\r\nn failed: 407 Proxy Authentication Required ( The ISA Server requires authorizat\r\nion to fulfill the request. Access to the Web Proxy filter is denied.  )',))': /\r\nsimple/cx-freeze/\r\n  Retrying (Retry(total=4, connect=None, read=None, redirect=None)) after connec\r\ntion broken by 'ProxyError('Cannot connect to proxy.', OSError('Tunnel connectio\r\nn failed: 407 Proxy Authentication Required ( The ISA Server requires authorizat\r\nion to fulfill the request. Access to the Web Proxy filter is denied.  )',))': /\r\nsimple/cx-freeze/\r\n  Retrying (Retry(total=3, connect=None, read=None, redirect=None)) after connec\r\ntion broken by 'ProxyError('Cannot connect to proxy.', OSError('Tunnel connectio\r\nn failed: 407 Proxy Authentication Required ( The ISA Server requires authorizat\r\nion to fulfill the request. Access to the Web Proxy filter is denied.  )',))': /\r\nsimple/cx-freeze/\r\n  Retrying (Retry(total=2, connect=None, read=None, redirect=None)) after connec\r\ntion broken by 'ProxyError('Cannot connect to proxy.', OSError('Tunnel connectio\r\nn failed: 407 Proxy Authentication Required ( The ISA Server requires authorizat\r\nion to fulfill the request. Access to the Web Proxy filter is denied.  )',))': /\r\nsimple/cx-freeze/\r\n  Retrying (Retry(total=1, connect=None, read=None, redirect=None)) after connec\r\ntion broken by 'ProxyError('Cannot connect to proxy.', OSError('Tunnel connectio\r\nn failed: 407 Proxy Authentication Required ( The ISA Server requires authorizat\r\nion to fulfill the request. Access to the Web Proxy filter is denied.  )',))': /\r\nsimple/cx-freeze/\r\n  Retrying (Retry(total=0, connect=None, read=None, redirect=None)) after connec\r\ntion broken by 'ProxyError('Cannot connect to proxy.', OSError('Tunnel connectio\r\nn failed: 407 Proxy Authentication Required ( The ISA Server requires authorizat\r\nion to fulfill the request. Access to the Web Proxy filter is denied.  )',))': /\r\nsimple/cx-freeze/\r\n  Could not find any downloads that satisfy the requirement cx-Freeze\r\n  No distributions at all found for cx-Freeze\r\n```\r\n\r\n## Using pip 1.0.1 from c:\\python27\\lib\\site-packages (python 2.7) I got this pip.log file content:==\r\n\r\n```\r\n------------------------------------------------------------\r\nC:\\Python27\\Scripts\\pip-script.py run on 08/11/15 16:36:48\r\nDownloading/unpacking cx-Freeze\r\n  Getting page http://pypi.python.org/simple/cx_Freeze\r\n  Could not fetch URL http://pypi.python.org/simple/cx_Freeze: HTTP Error 407: Proxy Authentication Required ( The ISA Server requires authorization to fulfill the request. Access to the Web Proxy filter is denied.  )\r\n  Will skip URL http://pypi.python.org/simple/cx_Freeze when looking for download links for cx-Freeze\r\n  Getting page http://pypi.python.org/simple/\r\n  Could not fetch URL http://pypi.python.org/simple/: HTTP Error 407: Proxy Authentication Required ( The ISA Server requires authorization to fulfill the request. Access to the Web Proxy filter is denied.  )\r\n  Will skip URL http://pypi.python.org/simple/ when looking for download links for cx-Freeze\r\n  Cannot fetch index base URL http://pypi.python.org/simple/\r\n  URLs to search for versions for cx-Freeze:\r\n  * http://pypi.python.org/simple/cx_Freeze/\r\n  Getting page http://pypi.python.org/simple/cx_Freeze/\r\n  Could not fetch URL http://pypi.python.org/simple/cx_Freeze/: HTTP Error 407: Proxy Authentication Required ( The ISA Server requires authorization to fulfill the request. Access to the Web Proxy filter is denied.  )\r\n  Will skip URL http://pypi.python.org/simple/cx_Freeze/ when looking for download links for cx-Freeze\r\n  Could not find any downloads that satisfy the requirement cx-Freeze\r\nNo distributions at all found for cx-Freeze\r\nException information:\r\nTraceback (most recent call last):\r\n  File \"C:\\Python27\\lib\\site-packages\\pip\\basecommand.py\", line 126, in main\r\n    self.run(options, args)\r\n  File \"C:\\Python27\\lib\\site-packages\\pip\\commands\\install.py\", line 223, in run\r\n    requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, bundle=self.bundle)\r\n  File \"C:\\Python27\\lib\\site-packages\\pip\\req.py\", line 954, in prepare_files\r\n    url = finder.find_requirement(req_to_install, upgrade=self.upgrade)\r\n  File \"C:\\Python27\\lib\\site-packages\\pip\\index.py\", line 152, in find_requirement\r\n    raise DistributionNotFound('No distributions at all found for %s' % req)\r\nDistributionNotFound: No distributions at all found for cx-Freeze\r\n```\r\n\r\n\r\n\r\n"}}