2021-11-14
閱讀量:
673
Conda 下載源
1.conda源更換為清華 源
conda config - - add channels https: / / mirrors.tuna.tsinghua.edu.cn / anaconda / pkgs / free / conda config - - set show_channel_urls yes |
2.conda源更換為中科大源
conda config - - add channels https: / / mirrors.ustc.edu.cn / anaconda / pkgs / free / conda config - - set show_channel_urls yes 記得刪掉c: / usr / usrname里的.condarc原有的清華鏡像 |
3.如果需要換回conda的默認(rèn)源。查看了conda config的文檔后,發(fā)現(xiàn)直接刪除channels即可。命令如下:
conda config - - remove - key channels |
4,好用的pip可用的源:
#清華大學(xué)源 https://pypi.tuna.tsinghua.edu.cn/simple #阿里巴巴源 https://pypi.doubanio.com/simple #中國(guó)科學(xué)技術(shù)大學(xué)源 https://pypi.mirrors.ustc.edu.cn/simple/ #豆瓣源 https://pypi.doubanio.com/simple
5,兩種方式pip和conda
#使用豆瓣源pip下載pandas包
pip install -i https://pypi.doubanio.com/simple pandas --trusted-host pypi.doubanio.com
#使用清華源conda下載pandas包
conda install --channel https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free
參考網(wǎng)址:






評(píng)論(0)


暫無(wú)數(shù)據(jù)
CDA考試動(dòng)態(tài)
CDA報(bào)考指南
推薦帖子
0條評(píng)論
0條評(píng)論
0條評(píng)論
0條評(píng)論