pythonにおけるpip配置清華源切替国内源(清華鏡像)

1360 ワード

まず
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
conda config --set show_channel_urls yes

効果がない、またはスピードアップしていない場合は、userディレクトリに新しいファイルを作成してpipを作成します.iniファイル、ドキュメントを作成してから、iniフォーマットに変更できます.
[global]
index-url = https://pypi.tuna.tsinghua.edu.cn/simple
      。```