python pip出錯問題解決記錄


今天安裝一下requests模塊,遇到網絡問題

pip install requests

 Retrying (Retry(total=4, connect=None, read=None, redirect=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', NewConnectionError('<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x00000000044CF7B8>: Failed to establish a new connection: [Errno 10061] ',))': /simple/requests/
  Retrying (Retry(total=3, connect=None, read=None, redirect=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', NewConnectionError('<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x00000000044CF6A0>: Failed to establish a new connection: [Errno 10061] ',))': /simple/requests/
  Retrying (Retry(total=2, connect=None, read=None, redirect=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', NewConnectionError('<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x00000000044CF5F8>: Failed to establish a new connection: [Errno 10061] ',))': /simple/requests/
  Retrying (Retry(total=1, connect=None, read=None, redirect=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', NewConnectionError('<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x00000000044CF4A8>: Failed to establish a new connection: [Errno 10061] ',))': /simple/requests/
  Retrying (Retry(total=0, connect=None, read=None, redirect=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', NewConnectionError('<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x00000000044CF358>: Failed to establish a new connection: [Errno 10061] ',))': /simple/requests/
  Could not find a version that satisfies the requirement requests (from versions: )
No matching distribution found for requests

剛開始懷疑官方源不行,但是指定 阿里的源 並且給 trust-hosts 參數仍然不行,最后懷疑可能是代理造成的影響

可是查了任務管理器,並沒有什么代理軟件,然后覺得應該是之前代理軟件起了系統代理的作用,盡管沒運行,但是配置影響了整個系統

所以重新打開代理軟件,把全局模式關閉了,然后就成功了

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM