【自用】pip和conda换源

【自用】pip和conda换源

  1. pip 换源
-i https://pypi.tuna.tsinghua.edu.cn/simple
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple  xxxxx(包的名字)
  1. conda 换源(Linux)
vi  ~/.condarc

channels:
  - https://mirrors.ustc.edu.cn/anaconda/pkgs/main/
  - https://mirrors.ustc.edu.cn/anaconda/cloud/conda-forge/
  - https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
  - defaults
show_channel_urls: true

你可能感兴趣的:(笔记类,python)