I am trying to install flask with pip3 in a virtual environment and it fails when I run
(VirtEnv) $ pip3 install flask
With:
Collecting flask
Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f870ae3bc18>: Failed to establish a new connection: [Errno -2] Name or service not known',)': /simple/flask/
Could not find a version that satisfies the requirement flask (from versions: )
No matching distribution found for flask
However when I run with sudo, the command succeeds but I've read this will install the file outside the virtual environment when using sudo. Running outside the virtual environment also succeeds.