condaおよびpipミラーソース

condaミラーソース

  • 清華

conda config-チャネルを
追加https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/ conda config-チャネルを追加https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/メイン/

  • 中国科学技術大学

conda config-チャネルの
追加https://mirrors.ustc.edu.cn/anaconda/pkgs/main/ conda config-チャネルの追加https://mirrors.ustc.edu.cn/anaconda/pkgs/free/

ピップミラーソース

  • アリクラウド: http://mirrors.aliyun.com/pypi/simple/
  • 中国科学技術大学: https://pypi.mirrors.ustc.edu.cn/simple/
  • ドゥバン: http://pypi.douban.com/simple/
  • 清華大学: https://pypi.tuna.tsinghua.edu.cn/simple/
  • 中国科学技術大学: http://pypi.mirrors.ustc.edu.cn/simple/

ピップセットミラーソース

  • 一時的にPIPソースを指定
>$ pip install xxx(下载的包名) -i  https://pypi.doubanio.com/simple
  • ピップソースを永続的に設定する(Linux)
  1. ルートディレクトリに.pip / pip.confを作成します。
[root@localhost ~]$ cd 
[root@localhost ~]$ mkdir .pip
[root@localhost ~]$ cd .pip
[root@localhost ~/.pip]$ vim pip.conf
  1. .pip.confは次のように記述します
[global]
index-url=http://pypi.douban.com/simple
trusted-host = pypi.douban.com 

おすすめ

転載: blog.csdn.net/ThunderF/article/details/106023193