pip和conda 设置安装源

conda

查看 channels

conda config  --show channels

添加 channels

conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/

移除 channels

conda config --remove channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/

channels 配置文件

cat ~/.condarc

pip

查看 index-url

pip config list

添加 index-url

pip config set global.index-url https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/

移除 index-url

pip config set global.index-url https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/

index-url 配置文件

cat .config/pip/pip.conf

常用源

  - 阿里云: https://mirrors.aliyun.com/anaconda/pkgs/free/
  - 清华:  https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
  - 豆瓣:  https://pypi.doubanio.com/simple
  - 中科大: https://mirrors.ustc.edu.cn/anaconda/pkgs/main/ 

相关推荐

  1. pipconda 设置安装

    2024-04-03 07:06:04       13 阅读
  2. condapip配置国内镜像

    2024-04-03 07:06:04       42 阅读
  3. pipconda添加删除镜像

    2024-04-03 07:06:04       31 阅读
  4. pipxconda

    2024-04-03 07:06:04       16 阅读
  5. 清理 Conda pip 缓存

    2024-04-03 07:06:04       9 阅读
  6. 【深度学习4】pipconda

    2024-04-03 07:06:04       14 阅读

最近更新

  1. TCP协议是安全的吗?

    2024-04-03 07:06:04       18 阅读
  2. 阿里云服务器执行yum,一直下载docker-ce-stable失败

    2024-04-03 07:06:04       19 阅读
  3. 【Python教程】压缩PDF文件大小

    2024-04-03 07:06:04       19 阅读
  4. 通过文章id递归查询所有评论(xml)

    2024-04-03 07:06:04       20 阅读

热门阅读

  1. Flask基础学习

    2024-04-03 07:06:04       12 阅读
  2. Redis

    Redis

    2024-04-03 07:06:04      16 阅读
  3. Shadow

    Shadow

    2024-04-03 07:06:04      9 阅读
  4. npm配置项管理

    2024-04-03 07:06:04       13 阅读
  5. matlab 轨迹生成函数

    2024-04-03 07:06:04       15 阅读