服务器Centos(linux)安装Anaconda和Fatiando

1. 先下载并安装Anaconda包:

现在官网下载:Download Anaconda Now! | Continuum

  • 安装命令:
    bash Anaconda2-4.3.0-Linux-x86_64.sh

  • 调试加入环境变量:

    vim ~/.bashrc
    
  • 加入命令:

    export PATH=/home/xldeng/anaconda2/bin:$PATH
    
  • 激活命令:

     source ~/.bashrc
    
  • 测试是否安装成功:

    #python
    
    Python 2.7.13 |Anaconda 4.3.0 (64-bit)| (default, Dec 20 2016, 23:09:15) 
    [GCC 4.4.7 20120313 (Red Hat 4.4.7-1)] on linux2
    Type "help", "copyright", "credits" or "license" for more information.
    Anaconda is brought to you by Continuum Analytics.
    Please check out: http://continuum.io/thanks and https://anaconda.org
    

或者

  #conda -V                               
  conda 4.3.8

2. 安装Fatiando

  conda install fatiando --channel conda-forge
  conda install numpy scipy numba future matplotlib pillow jupyter basemap mayavi

3. 测试是否安装成功

输入python进入python环境,然后使用如下命令:

  import fatiando #导入Fatiando模块
  print('Fatiando a Terra version: {}\n'.format(fatiando.__version__)) #显示版本

显示结果如下:

  Fatiando a Terra version: 0.5

如此,Fatiando软件成功安装。

你可能感兴趣的:(服务器Centos(linux)安装Anaconda和Fatiando)