99999久久久久久亚洲,欧美人与禽猛交狂配,高清日韩av在线影院,一个人在线高清免费观看,啦啦啦在线视频免费观看www

熱線電話:13121318867

登錄
2018-10-18 閱讀量: 1210
pip安裝python包下載失敗怎么辦

我pip 安裝包的時(shí)候有如下報(bào)錯(cuò),怎么解決?

   Retrying (Retry(total=2, connect=None, read=None, redirect=None)) after connection broken by ‘ReadTimeoutError(“HTTPSConnectionPool(host=’pypi.python.org’, port=443): Read timed out. (read timeout=15)”,)’: /simple/scipy/

這是網(wǎng)絡(luò)問(wèn)題引起的,建議更換pip的鏡像服務(wù)器地址

更換方式有兩種:

臨時(shí)更換的方法是在命令后加 -i 源地址 , pip install package_name -i 源。如使用豆瓣源安裝pandas

pip install pandas -i http://pypi.douban.com/simple 

更改配置文件法可以長(zhǎng)久的更改鏡像服務(wù)器

首先在 C:\Users\用戶(hù)名 目錄下創(chuàng)建.pip的文件夾(注意pip前的點(diǎn))

然后在 C:\Users\用戶(hù)名\.pip 下創(chuàng)建pip.conf文件

通過(guò)記事本編輯,文件中寫(xiě)入如下內(nèi)容 :

[global] 

index-url = http://mirrors.aliyun.com/pypi/simple/
[install]

trusted-host = mirrors.aliyun.com

這里面的源地址也可以使用下面的

阿里云 http://mirrors.aliyun.com/pypi/simple/
中國(guó)科技大學(xué) https://pypi.mirrors.ustc.edu.cn/simple/
豆瓣 http://pypi.douban.com/simple
Python官方 https://pypi.python.org/simple/
v2ex http://pypi.v2ex.com/simple/
中國(guó)科學(xué)院 http://pypi.mirrors.opencas.cn/simple/
清華大學(xué) https://pypi.tuna.tsinghua.edu.cn/simple/

0.0199
2
關(guān)注作者
收藏
評(píng)論(0)

發(fā)表評(píng)論

暫無(wú)數(shù)據(jù)
推薦帖子