美文网首页
Mac下conda换源、pip换源

Mac下conda换源、pip换源

作者: 夜空最亮的9星 | 来源:发表于2020-10-07 14:04 被阅读0次

conda换国内源

在清华源和中科大源之间自行选择

添加中科大源

    conda config --add channels https://mirrors.ustc.edu.cn/anaconda/pkgs/main/
    conda config --add channels https://mirrors.ustc.edu.cn/anaconda/pkgs/free/
    conda config --add channels https://mirrors.ustc.edu.cn/anaconda/cloud/conda-forge/
    conda config --add channels https://mirrors.ustc.edu.cn/anaconda/cloud/msys2/
    conda config --add channels https://mirrors.ustc.edu.cn/anaconda/cloud/bioconda/
    conda config --add channels https://mirrors.ustc.edu.cn/anaconda/cloud/menpo/
    conda config --set show_channel_urls yes

添加清华源


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

# 设置搜索时显示通道地址
conda config --set show_channel_urls yes

pip换源

在home目录下的隐藏文件夹.pip内的pip.conf文件中,输入下面的内容之一即可。没有的这个文件的话就新建。

mkdir .pip
cd .pip
vim pip.conf

换清华源:

[global]
index-url = https://pypi.tuna.tsinghua.edu.cn/simple
[install]
trusted-host=pypi.tuna.tsinghua.edu.cn

换阿里源:

[global]
index-url = http://mirrors.aliyun.com/pypi/simple/
[install]
trusted-host=mirrors.aliyun.com

换豆瓣源(豆瓣网最开始就是用python写的):

[global]
index-url = http://pypi.douban.com/simple
[install]
trusted-host=pypi.douban.com

相关文章

  • Mac下conda换源、pip换源

    conda换国内源 在清华源和中科大源之间自行选择 添加中科大源 添加清华源 pip换源 在home目录下的隐藏文...

  • [转载] Windows conda pip 改源

    Windows下conda换源pip换源https://blog.csdn.net/weixin_44201449...

  • Conda 换源和PiP换源

    前言 每次配置实验室的Linux GPU服务器时,都会遇见Conda换源的问题,遂在此记录之。 Conda更换为清...

  • macOS 换源 conda pip

    https://blog.csdn.net/fenghaodaxia/article/details/104520...

  • Anaconda 常用命令大全

    Anaconda 常用命令大全 常用命令 环境管理 Conda 换源 安装32位版本python PIP换源 pi...

  • conda&jupyter&虚拟环境

    环境版本 win10anaconda:4.9.2(自带jupyter)python:3.8 换源 conda换源使...

  • 【环境搭建】将pip、conda、ubuntu源更换为清华源

    换源之后pip、conda、ubuntu下载速度会有大幅提升。 说明:在终端中执行相应的命令即可。 1 更换pip...

  • pip换源

    换源的作用是可以加快python下载库的速度。本篇文章采用的方法是作者已经编辑好换源的文本文件,读者只需要下载后将...

  • 换pip源

    vim ~/.pip/pip.conf [global]index-url = http://mirrors.al...

  • pip换源

    pip3 config set global.index-url https://pypi.tuna.tsingh...

网友评论

      本文标题:Mac下conda换源、pip换源

      本文链接:https://www.haomeiwen.com/subject/rlufpktx.html