Ubuntu installs Fatiando 0.5 in Python 2.7

2021-12-20
#Unix #Python #Ubuntu

1. Introduction

The general introduction is:

Fantiando is an open-source Python library for modeling and inversion in geophysics.

Fantiando 0.5 (https://legacy.fatiando.org/index.html) is tested on Python 2.7, now Fatiando a Terra is updated in Python 3 and divided as:

2. Install

2.1 Install Anaconda

The page of installing Anaconda is at Ubuntu install Anaconda.

2.2 Create environment of Python2.7

conda create -n python2.7 python=2.7

It will creat an environment of python2.7 at /home/deng/anaconda3/envs/.

# To activate this environment, use
#
#     $ conda activate python2.7
#
# To deactivate an active environment, use
#
#     $ conda deactivate

2.3 Activate python2.7

conda activate python2.7

2.4 Install dependencies

conda install numpy scipy numba future matplotlib pillow jupyter basemap mayavi

2.5 Install fatiando with conda

conda install fatiando --channel conda-forge

This command can be performed successfully.

However, pip install fatiando and pip install https://github.com/fatiando/fatiando/archive/master.zip will have this error:

ERROR: Could not find a version that satisfies the requirement jupyterlab-widgets>=1.0.0 
(from ipywidgets->jupyter->fatiando==0.5) (from versions: 0.3.2, 0.3.3, 0.4.0, 0.4.1, 0.5.0, 0.6.0, 0.6.1, 0.6.2, 0.6.3, 0.6.4, 0.6.5, 0.6.6, 0.6.7, 0.6.8, 0.6.9, 0.6.10, 0.6.11, 0.6.12, 0.6.13, 0.6.14, 0.6.15)
ERROR: No matching distribution found for jupyterlab-widgets>=1.0.0 (from ipywidgets->jupyter->fatiando==0.5)

3. Reference