(python pip安裝第三方庫超時問題(raise ReadTimeoutErrorself._pool, None, 'Read timed out.')


(python pip安裝第三方庫超時問題(raise ReadTimeoutErrorself._pool, None, ‘Read timed out.’)
pip工具安裝
百度經驗鏈接: pip安裝及環境變量配置.

pip下載超時處理
aise ReadTimeoutError(self._pool, None, ‘Read timed out.’)

方案一:對於比較小的庫,可以延時處理
-------- pip --default-timeout=100 install -U pip
-------- pip --default-timeout=100 install 第三方庫名
方案二:更換安裝源
------------網上可以查找很多豆瓣源
https://pypi.tuna.tsinghua.edu.cn/simple/
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple pyecharts
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple 庫名
出錯使用這種 :pip install --index-url https://pypi.tuna.tsinghua.edu.cn/simple/ lightgbm

方案三:下載離線包
python所有庫:(https://www.lfd.uci.edu/~gohlke/pythonlibs/#lxml)
---------然后通過pip install 保存路徑/加上下載的文件名 進行安裝
(如pip install C:\Users\HP\Desktop\scikit_image-0.14.1-cp37-cp37m-win32.whl)

 

 


原文鏈接:https://blog.csdn.net/qq_40925385/article/details/83753598


免責聲明!

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



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