pip安裝模塊報ConnectTimeoutError錯誤

今天在安裝retrying時報連接超時錯誤,最終需要使用國內(nèi)鏡像進行更新..

pip install retrying
Collecting retrying
  Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', timeout('timed out',))': /simple/retrying/
  Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', timeout('timed out',))': /simple/retrying/
  Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', timeout('timed out',))': /simple/retrying/
  Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', timeout('timed out',))': /simple/retrying/
  Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', timeout('timed out',))': /simple/retrying/
  Could not find a version that satisfies the requirement retrying (from versions: )
No matching distribution found for retrying

推薦使用douban提供的pipy國內(nèi)鏡像服務(wù),如果想手動指定源,可以在pip后面跟-i 來指定源,比如用豆瓣的源來安裝retrying框架:

pip install retrying -i http://pypi.douban.com/simple --trusted-host pypi.douban.com

The repository located at pypi.douban.com is not a trusted or secure host and is being ignored. If this repository is available via HTTPS it is recommended to use HTTPS instead, otherwise you may silence this warning and allow it anyways with '--trusted-host pypi.douban.com'.

?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時請結(jié)合常識與多方信息審慎甄別。
平臺聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點,簡書系信息發(fā)布平臺,僅提供信息存儲服務(wù)。

相關(guān)閱讀更多精彩內(nèi)容

  • 最近在更新scrapy時報連接超時錯誤,無奈公司木有科學上網(wǎng)工具,最終還是需要使用國內(nèi)鏡像進行更新.. 推薦使用d...
    burtliu閱讀 41,444評論 2 4
  • rljs by sennchi Timeline of History Part One The Cognitiv...
    sennchi閱讀 7,864評論 0 10
  • 自律是對自我的管理,自信是對事情的掌控,先學會管理自己,從自律中找到自信,在自律中創(chuàng)造自信 富蘭克林說“我從未見過...
    呂銘靜閱讀 568評論 0 0
  • 老公今天跟我一起去雙流的公司了,他基本一直在樓上的辦公室里處理龍泉公司的事,我在樓下處理我的事,午餐過后,春...
    露丹兒閱讀 268評論 0 0
  • 寫了這個標題,其實這篇文章與酸梅湯并沒關(guān)系。只是我覺得,這個季節(jié),應(yīng)該有一碗酸梅湯。 在一個炎熱的...
    一個影視文案的自白閱讀 1,410評論 7 3

友情鏈接更多精彩內(nèi)容