Use these instructions to install Git, Shell, Python and associated libraries (numpy and friends) on Windows, macOS and Linux.
Install git for windows. This provides both git and a bash shell for basic commands.
We recommend using Anaconda to install Python, for simplicity. You can also use Miniconda if you feel confortable.
To make conda
available from within the Git Bash
open Git Bash
and then run the following:
$ echo ". ${HOME}/anaconda3/etc/profile.d/conda.sh" >> ${HOME}/.bash_profile
Now restart Git Bash
. You should now be able to simply run conda activate
to make Python available from within Git Bash
.
macOS system come with a shell, so there's no need to install one.
You access the shell from the Terminal
(found in /Applications/Utilities
). This video shows this.
If git is not already installed you can install it together with the XCode Command Line Tools like:
$ sudo xcode-select --install
or using homebrew:
$ brew install git
We recommend using Anaconda to install Python, for simplicity. You can also use Miniconda if you feel confortable.
Linux system come with a shell, so there's no need to install one.
To install Git use the package manager of your distribution.
For Debian/Ubuntu run:
$ sudo apt-get install git
For Fedora:
$ sudo dnf install git
We recommend using Anaconda to install Python, for simplicity. You can also use Miniconda if you feel confortable.
Anaconda installs not only Python but also a large number of packages including everything we need for this course (and much more).
Miniconda installs a minimal conda
environment. You will then have to manually install the following packages:
- numpy
- scipy
- matplotlib
- jupyter
You can do this with:
conda install numpy scipy matplotlib jupyter