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

熱線電話:13121318867

登錄
2018-10-25 閱讀量: 1040
python pip和conda 配置

pip

Windows

Windows 下的 pip 配置文件路徑:%HOMEPATH%/pip/pip.ini 文件,如不存在則新建,在其中寫(xiě)入:

[global]
index-url = http://pypi.douban.com/simple
trusted-host = pypi.douban.com
disable-pip-version-check = true
timeout = 120

[install]
ignore-installed = true
# 不自動(dòng)安裝依賴的時(shí)候設(shè)置此選項(xiàng)
# no-dependencies = yes

[list]
format = columns

注:

index-url - 使用豆瓣源

format - 當(dāng)運(yùn)行 pip list 命令時(shí),等效于 pip list --format=columns,避免出現(xiàn)相關(guān)警告。

Linux

Linux 系統(tǒng)pip配置文件默認(rèn)路徑為:

~/.pip/pip.conf

如果用的阿里云,則默認(rèn)配置文件為:

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

[install]
trusted-host=mirrors.aliyun.com

但是阿里云pypi更新比較緩慢,換成注釋掉相關(guān)配置,換成官方源。

另附清華源配置:

[global]
index-url = https://pypi.tuna.tsinghua.edu.cn/simple

conda

設(shè)置清華大學(xué)鏡像:

conda config --add channels 'https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/'
conda config --set show_channel_urls yes
0.0000
1
關(guān)注作者
收藏
評(píng)論(0)

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

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