-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
possible errors in WSL when running python3 -m pip #2679
Comments
Thanks for posting this issue @josebrwn. Sorry for my slowness getting to it, but it's on my list to add this to a troubleshooting section of the docs. I'll post an update once it's in. |
Thanks again for this @josebrwn - finally got it added to the FAQ. Your contributions are really appreciated. Closing - resolved with https://github.com/MicrosoftDocs/windows-uwp-pr/pull/1111 |
I got a similar but slightly different error just now after installing conda. In my case I got Errno -2 "Name or service not known".
It was enough to update/upgrade the distribution (WSL Ubuntu). |
I also encounter the same error as @corneliusroemer using WSL2, so pip cannot install anything, totally broken:
|
Hey guys, do you have encoutered any solutions for this issue? My problem is when I use wsl and the error is as follow: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x7f767f07bb38>: Failed to establish a new connection: [Errno 101] Network is unreachable',)': /simple/pip/ |
@PortugalNeto Anaconda's |
* Remove Asset product tool section per request * Work around bug in list spacing * Another Work around bug in list spacing
In this step:
python3 -m pip install flask
You may encounter an error such as this:
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f655471da30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution')': /simple/flask/
When researching this problem you may get led down several rabbit holes, none of which are particularly productive on WSL Ubuntu. (Warning: on WSL do not try editing resolv.conf, that file is a symbolic link and modifying it is a can of worms). Unless you are running an aftermarket firewall, the likely solution is to simply re-install pip:
H/T - microsoft/WSL#4020
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
The text was updated successfully, but these errors were encountered: