Closed
Description
Please fill out the below information:
-
Your Windows build number:
10.0.17763.475/ WSL Ubuntu18.04.2 -
What you're doing and what's happening: Type
sudo pip3 install [package] -
What's wrong / what should be happening instead:
Following error message comes out when trying to install packages via pip.
Collecting [package]
Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProtocolError('Connection aborted.', OSError(0, 'Error'))': /simple/[package]/
Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProtocolError('Connection aborted.', OSError(0, 'Error'))': /simple/[package]/
Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProtocolError('Connection aborted.', OSError(0, 'Error'))': /simple/[package]/
Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProtocolError('Connection aborted.', OSError(0, 'Error'))': /simple/[package]/
Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProtocolError('Connection aborted.', OSError(0, 'Error'))': /simple/[package]/
Could not find a version that satisfies the requirement flask-restful (from versions: )
No matching distribution found for [package]
None of these solutions work.
- Re-install pip
- Re-install WSL
- sudo pip3 install [package]
- pip3 install [package] with root account
- sudo -H pip3 install [package]
- pip install --user [package]
These commands works normally.
- python -V (3.6)
- pip3 --version (9.0.1)