This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Connection reset by peer error when installing python packages
Type: behavior Stage: resolved
Components: Build Versions: Python 2.7
process
Status: closed Resolution: third party
Dependencies: Superseder:
Assigned To: Nosy List: Decorater, Rohit Khairnar, abarry
Priority: normal Keywords:

Created on 2016-11-29 02:22 by Rohit Khairnar, last changed 2022-04-11 14:58 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
pypi.pcap Rohit Khairnar, 2016-11-29 02:22 Packet capture during the issue
Messages (4)
msg281932 - (view) Author: Rohit Khairnar (Rohit Khairnar) Date: 2016-11-29 02:22
We are seeing intermittent "connection reset by peer" connecting to pypi.python.org. Pip install "connection reset by peer"

I am a Network Engineer at Hulu and our Devs are seeing error 104 connection resets by peer errors. We thought it was a firewall issue but even after upgrading it we are still seeing the issues. I can get more details from Devs if needed.

regards,
Rohit
msg281933 - (view) Author: Decorater (Decorater) * Date: 2016-11-29 02:39
Try using the new pypi instead: https://pypi.org/ locate the package then override pip to look for that package with the direct link to find the package with a command line arg of : -f

ex:

pip3 install -f [direct url to pypi page to package in question here]

According to pip's documentation is says this about -f
If a url or path to an html file, then parse for links to archives. If a local path or file:// url that's a directory, then look for archives in the directory listing.

Hope this helps.
msg281935 - (view) Author: Decorater (Decorater) * Date: 2016-11-29 02:45
Also why python 2.7? Python 2.7 does not include asyncio which is absolutely awesome to use. It can allow doing multiple different things at the same time. So, it is and will be a good thing to upgrade. Note: a lot of things since 2.7 and 3.x was removed (some exception classes included). But after the change you should be fine. Note print from python 2 is a function in python 3.x.

Not only that but 2.x would reach EOL on about 2020 and with it security updates for it would close. All the more reasons to use 3.6 when it is released officially.
msg281937 - (view) Author: Anilyka Barry (abarry) * (Python triager) Date: 2016-11-29 03:01
Decorater: For very large projects, the switch from Python 2 to 3 is a non-trivial task that can take up years of work, and there are many reasons why one cannot switch.

On the issue, however, for all PyPi-related issues, please go to the PyPa GitHub: https://github.com/pypa/pypi-legacy/
History
Date User Action Args
2022-04-11 14:58:40adminsetgithub: 73014
2016-11-29 03:01:03abarrysetstatus: open -> closed

nosy: + abarry
messages: + msg281937

resolution: third party
stage: resolved
2016-11-29 02:45:47Decoratersetmessages: + msg281935
2016-11-29 02:39:58Decoratersetnosy: + Decorater
messages: + msg281933
2016-11-29 02:22:56Rohit Khairnarcreate