Installing Python¶
How to install Python depends a lot on your operating system.
macOS¶
For macOS two popular choices for package managers exist: Homebrew and MacPorts. Both are solid so the choice is up to you, I currently prefer Homebrew.
Homebrew¶
Install the command line tools via
$ xcode-select --install
Agree to the Xcode license by running
$ sudo xcodebuild -license
Install Homebrew.
Install the required formulas by running
$ brew install git python3 hdf5 freetype libpng
MacPorts¶
Install the current version of Xcode on your Mac via the Mac App Store.
Open your terminal and install the Xcode Command Line Utilities and run
$ xcode-select --install
Agree to the Xcode license by running
$ sudo xcodebuild -license
Install MacPorts for your version of macOS.
Install the required ports via
$ sudo port install freetype libpng git hdf5 python35
Ubuntu 16.04 LTS¶
Install the required packages via
$ sudo apt-get install cmake gfortran git libfreetype6-dev libatlas-dev liblapack-dev libhdf5-dev python3-dev python3-venv python3-pip python3-tk
Ubuntu 16.10¶
Install the required packages via
sudo apt-get install python3-venv python3-tk hdfview