Python 由于debian上的NewConnectionError,pip安装失败

Python 由于debian上的NewConnectionError,pip安装失败,python,pip,python-requests,google-compute-engine,google-cloud-networking,Python,Pip,Python Requests,Google Compute Engine,Google Cloud Networking,我经常在虚拟环境中在我的Google Compute Engine(Debian)上执行pip安装,但今天我刚刚收到我尝试安装的任何软件包的新连接错误: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.Verif

我经常在虚拟环境中在我的Google Compute Engine(Debian)上执行
pip安装
,但今天我刚刚收到我尝试安装的任何软件包的新连接错误:

 Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) 
    after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x7f42a65bdf60>: 
    Failed to establish a new connection: [Errno 101] Network is unreachable',)': 
    /packages/49/df/50aa1999ab9bde74656c2919d9c0c085fd2b3775fd3eca826012bef76d8c/requests-2.18.4-py2.py3-none-any.whl
重试(重试(总计=4,连接=None,读取=None,重定向=None,状态=None))
连接被“NewConnectionError”()断开后:
无法建立新连接:[Errno 101]无法访问网络',)':
/文件包/49/df/50aa1999ab9bde74656c2919d9c0c085fd2b3775fd3eca826012bef76d8c/requests-2.18.4-py2.py3-none-any.whl
我知道还有其他相关帖子建议指定一个代理,但我过去在同一台机器上多次安装了
pip
ing,但不知怎的,今天只是返回了上面的错误。看起来不像是代理问题。什么会改变


pip
版本是
10.0.1
,机器显然有实时互联网连接(它是我们在谷歌计算引擎上的prod服务器)。我可以成功地从计算机ping网站。

需要打开
端口443
,以便在Google Compute Engine实例上发送流量(到特定IP),因为pip3通过HTTPS运行

有关如何执行此操作(使用命令行或GUI)的详细说明,请参阅。获取
files.pythonhosted.org的IP来设置目标IP

(这指出了在AWS EC2实例上使用
pip3
的相同问题)