python:pip install pandas報(bào)錯(cuò)
Could not find a version that satisfies the requirement numpy (from versi
#報(bào)錯(cuò):
Could not fetch URL https://pypi.python.org/simple/numpy/: There was a problem confirming the ssl certificate: [SSL: TLSV1_ALERT_PROTOCOL_VERSION] tlsv1 alert protocol version (_ssl.c:661) - skipping
Could not find a version that satisfies the requirement numpy (from versions: )
No matching distribution found for numpy
####解決方法####
使用國內(nèi)鏡像
pip install pandas -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com
pip install numpy -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com
pip install scipy==1.2.1 -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com
————————————————
版權(quán)聲明:本文為CSDN博主「小小米樂」的原創(chuàng)文章,遵循 CC 4.0 BY-SA 版權(quán)協(xié)議,轉(zhuǎn)載請(qǐng)附上原文出處鏈接及本聲明。
原文鏈接:https://blog.csdn.net/yanwenyuan0304/article/details/86072970
(python pip安裝第三方庫超時(shí)問題(raise ReadTimeoutErrorself._pool, None, ‘Read timed out.’)
pip工具安裝
百度經(jīng)驗(yàn)鏈接: pip安裝及環(huán)境變量配置.
pip下載超時(shí)處理
aise ReadTimeoutError(self._pool, None, ‘Read timed out.’)
方案一:對(duì)于比較小的庫,可以延時(shí)處理
-------- pip --default-timeout=100 install -U pip
-------- pip --default-timeout=100 install 第三方庫名
方案二:更換安裝源
------------網(wǎng)上可以查找很多豆瓣源
如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 庫名
出錯(cuò)使用這種 :pip install --index-url https://pypi.tuna.tsinghua.edu.cn/simple/ lightgbm
方案三:下載離線包
python所有庫:(https://www.lfd.uci.edu/~gohlke/pythonlibs/#lxml)
---------然后通過pip install 保存路徑/加上下載的文件名 進(jìn)行安裝
(如pip install C:\Users\HP\Desktop\scikit_image-0.14.1-cp37-cp37m-win32.whl)
————————————————
版權(quán)聲明:本文為CSDN博主「楓-凡」的原創(chuàng)文章,遵循 CC 4.0 BY-SA 版權(quán)協(xié)議,轉(zhuǎn)載請(qǐng)附上原文出處鏈接及本聲明。
原文鏈接:https://blog.csdn.net/qq_40925385/article/details/83753598