pip 無法連接到 AWS 上的任何內容

pip 無法連接到 AWS 上的任何內容

我無法讓 pip3 在我的 ec2 實例上運行。一些研究告訴我,pip 運行在連接埠 3128 上,我已在安全群組中開啟該連接埠。我已經使用 netcat 和 telnet 驗證了該方法是否有效。

我不知道這是否重要,但只有當我監聽 0.0.0.0 而不是 127.0.0.1 時它才有效。

無論如何,pip3無法安裝任何東西。我在網路上找到的所有內容都表明我位於代理商或公司防火牆後面,但事實並非如此。基本的 ec2 實例、基本的預先配置 VPC。

所有 pip 包的確切錯誤都是相同的,但目前我正在嘗試獲取 xmlsec。

$ pip3 install xmlsec
Collecting xmlsec
  Retrying (Retry(total=4, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x7f86aab4add8>: Failed to establish a new connection: [Errno 101] Network is unreachable',)': /simple/xmlsec/
  Retrying (Retry(total=3, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x7f86aab4a860>: Failed to establish a new connection: [Errno 101] Network is unreachable',)': /simple/xmlsec/
^COperation cancelled by user

有人有什麼想法嗎?非常感激。

相關內容