-
Notifications
You must be signed in to change notification settings - Fork 3.1k
error when use pipWARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ReadTimeoutError("HTTPSConnectionPool(host='pypi.org', port=443): Read timed out. (read timeout=15)")': /simple/colorama/ #9508
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
same for me. |
Same here, and it also for #9489. From what I tested, it seem to be something with IPv6. ping pypi.org
Pinging pypi.org [2a04:4e42::223] with 32 bytes of data:
Request timed out.
Request timed out.
Request timed out.
Request timed out.
Ping statistics for 2a04:4e42::223:
Packets: Sent = 4, Received = 0, Lost = 4 (100% loss), But when forcing IPv4, no problem: ping -4 pypi.org
Pinging pypi.org [151.101.0.223] with 32 bytes of data:
Reply from 151.101.0.223: bytes=32 time=88ms TTL=51
Reply from 151.101.0.223: bytes=32 time=89ms TTL=51
Reply from 151.101.0.223: bytes=32 time=89ms TTL=51
Reply from 151.101.0.223: bytes=32 time=88ms TTL=51
Ping statistics for 151.101.0.223:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 88ms, Maximum = 89ms, Average = 88ms So I added py -3 -m pip install -U pip
Requirement already satisfied: pip in c:\python38\lib\site-packages (21.0)
Collecting pip
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ReadTimeoutError("HTTPSConnectionPool(host='files.pythonhosted.org', port=443): Read timed out. (read timeout=15)")': /packages/de/47/58b9f3e6f611dfd17fb8bd9ed3e6f93b7ee662fb85bdfee3565e8979ddf7
/pip-21.0-py3-none-any.whl
WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ReadTimeoutError("HTTPSConnectionPool(host='files.pythonhosted.org', port=443): Read timed out. (read timeout=15)")': /packages/de/47/58b9f3e6f611dfd17fb8bd9ed3e6f93b7ee662fb85bdfee3565e8979ddf7
/pip-21.0-py3-none-any.whl
ERROR: Operation cancelled by user Now seem as the issue is with the file server ( py -3 -m pip install -U pip
Requirement already satisfied: pip in c:\python38\lib\site-packages (21.0)
Collecting pip
Downloading pip-21.0-py3-none-any.whl (1.5 MB)
|████████████████████████████████| 1.5 MB 1.1 MB/s
Downloading pip-20.3.4-py2.py3-none-any.whl (1.5 MB)
|████████████████████████████████| 1.5 MB ... BTW, I'm with python 3.8.5 on Windows 10 Pro and pip version 21.0. |
DjLegolas , thanks |
First, this is also seem to be the same as #9487, so linking it here. Second, @liron50 - open the HOSTS file, which is located at
Rerun the pip command and everything should work. Note: this method is a workaround only. You should NOT use this method as a constant solution. |
Thanks DjLegolas. |
Thanks mate ! it works! |
After some more investigation (thanks to
This line gets host='pypi.org' and family=socket.AF_UNSPEC , which returns always a list of tuples ordered by IPv6 first and only after that IPv4.But even though there is a problem communicating over IPv6, a socket is successfully created.And only later, when trying to wrap the socket with SSL, we get the timeout exception:pip/src/pip/_vendor/urllib3/connection.py Line 411 in 9d00fda
Any ideas and/or suggestions? |
I have recieved this error 5 to 6 times, in total spend 19hours trying to fix this from over 7 stack overflows, 4 githubs, 4 more websites no HELP. And Sorry to say @DjLegolas it is not working. I am sooooooo Done. My main device is a windows 7 and it sucks but there is another device a win 10 it's ok but I can't use it because all my work is stored in win7. IF any more solutions tell me. Whats happening here is I don't use proxy servers or something like that and I have it turned off. Whenever I try pip install the proxy turns on automatically. You can answer on my stackoverflow question or here but pls ANSWER anyone |
Ahahahahaha I reinstalled python and it worked also the I was unchecking proxy but I wasn't applying it. For everyone who has this error never upgrade pip |
I installed all packages needed without upgrading pip. Hope this gets fixed |
I have a similar problem and nothing mentioned here worked. I can't install anything with pip install.
I've also tried other versions of python. Adding
to the Increasing the timeout was not successful as well, instead I get a Any suggestions what else to try? |
Hmm I am trying to be helpful but I don't know if this is the correct solution. TRY reinstalling python3 because thats how I solved it in my case(s) And if you are ok what would be your opinion on a library that allows do to math arithmetic problems, Logic gates, more binary to decimal stuff, a way where you can import modules as variables without importing them but just importing the library, ml tools and libraries, file explorer kinda, info about a number and some AI. I am working on it. |
@DjLegolas solution worked for me with an additional step - delete all pip.ini files from system! |
@DjLegolas Thank you for the solution, it worked for me. |
@Reiterkk Thank you so much! this problem derived me crazy for the past couple of days, I think its because I rebooted my PC with python installed on my OS.. (just a guess) |
Turn off VPN, proxies if you are using. |
Looks like having ipv6 enabled causes the problem. Any ideas if it's gonna be fixed for those of us who need ipv6? |
i think, the proxy function is broken, not only because of ipv6, i'm using ipv4, still broken, only cleaned the proxy setting, it back to normal. |
@MaximusExtreme Thank you !!!! |
how do i get there in the settings |
Control panel -> Network and sharing Center -> Change adapter settings -> right click on your current connection (WiFi or LAN) and choose "Properties" -> Uncheck the box with TCP/IPv6
|
just reinstall python and dont upgrade it |
DjLegolas, carmis-dev - Many Thanks to you guys!!! God bless you! |
i'm on linux (mint) and the only thing that helped was to disable ipv6 i have found instructions here: |
Closing since this is not a bug on pip’s side, but a network configuration issue on user’s side. Please feel free to continue the discussion here though, it’s very encouraging to see users helping out each other! |
I solved this issue by re-installing the python installer file. I chose repair and then it now works. |
What if I use Linux (Manjaro Pahvo)? |
I am using a corporate proxy to access the internet, adding two variables to the environment variables helped me maybe j for linux this will help too |
I was trying to install colorama
I tried delete and install other versions of python and nothing helped
Output
in pycharm the same problem with install package
The text was updated successfully, but these errors were encountered: