Python

Terms and conditions of use

We have no responsibility or liability for any unintended consequences or damages that the use of the following information may cause. Please use them at your own risk.

Installation

CentOS 7


Python with "numpy", "matplotlib", "pandas", "netCDF4", and "basemap"
- Type the following commands
yum install gcc zlib-devel bzip2 bzip2-devel readline-devel sqlite sqlite-devel openssl-devel
git clone https://github.com/yyuu/pyenv.git ~/.pyenv

- Add the following lines to the ".bashrc" file
# pyenv
export PYENV_ROOT="$HOME/.pyenv"
export PATH="$PYENV_ROOT/bin:$PATH"
eval "$(pyenv init -)"

- Type the following commands
source .bashrc
pyenv version
pyenv install --list
pyenv install anaconda3-5.2.0
pyenv versions
pyenv global anaconda3-5.2.0
pyenv rehash
python --version
pyenv versions
conda update conda
conda list
conda install -c conda-forge netcdf4
conda install -c conda-forge basemap

ln -s /root/.pyenv/shims/python /usr/local/bin/python3

Ubuntu 18.04


Mac OS 10.13 (High Sierra)

- Type the following commands
brew install python3
which python3
which pip3
python3 --version
pip3 install numpy
pip3 install scipy
pip3 install matplotlib
pip3 install pandas