Anaconda安装与换源

1、安装
https://www.anaconda.com/download/在官方网站上下载安装即可,一路默认即可。
安装完成后查看是否安装成功:

image.png

如果出现没有该命令说明环境变量没有加到~/.bashrc中

export PATH="/Users/ricky/anaconda/bin:$PATH"
路径请根据自己电脑修改

2、换源
安装完成后可以更换源:

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

查看是否换源后信息

➜  ~ conda info
Current conda install:

               platform : osx-64
          conda version : 4.3.27
       conda is private : False
      conda-env version : 4.3.27
    conda-build version : not installed
         python version : 3.6.1.final.0
       requests version : 2.14.2
       root environment : /Users/ricky/anaconda  (writable)
    default environment : /Users/ricky/anaconda
       envs directories : /Users/ricky/anaconda/envs
                          /Users/ricky/.conda/envs
          package cache : /Users/ricky/anaconda/pkgs
                          /Users/ricky/.conda/pkgs
           channel URLs : https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/osx-64
                          https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/noarch
                          https://repo.continuum.io/pkgs/main/osx-64
                          https://repo.continuum.io/pkgs/main/noarch
                          https://repo.continuum.io/pkgs/free/osx-64
                          https://repo.continuum.io/pkgs/free/noarch
                          https://repo.continuum.io/pkgs/r/osx-64
                          https://repo.continuum.io/pkgs/r/noarch
                          https://repo.continuum.io/pkgs/pro/osx-64
                          https://repo.continuum.io/pkgs/pro/noarch
            config file : /Users/ricky/.condarc
             netrc file : None
           offline mode : False
             user-agent : conda/4.3.27 requests/2.14.2 CPython/3.6.1 Darwin/16.7.0 OSX/10.12.6
                UID:GID : 501:20

推荐阅读更多精彩内容