1. 程式人生 > >pip安裝東西,遇到問題retry(toal=4,connect=None, read=None, redirect=None, status=None)) after

pip安裝東西,遇到問題retry(toal=4,connect=None, read=None, redirect=None, status=None)) after

問題

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 0x000001534C3FB7B8>: Failed to establish a new connection: [Errno 11002] getaddrinfo failed',)': /simple/imblearn/

方案

這種表現說明網速過慢,在網速沒問題的情況下有兩種可能,一種是你的pip要安裝的包名字不對,導致無法識別出來,第二種可能是因為被牆了,當翻牆之後,就能下載了,我遇到的就是第二種情況。