Appendix - how to install Python 3

Install Python 3 through Anaconda/Miniconda

There are may ways of installing Python 3, depending on your operating system, but also what you want to use Python for. Perhaps the most straightforward way to install a “ready to go” Python is to install Anaconda. You can view Anaconda as a bundle including Python itself + useful utilities (such as the pip package manager) + several gigabytes worth of Python packages. An alternative to Anaconda is Miniconda, which is essentially a stripped version of Anaconda. It provides a lighter Python distribution consisting of just Python + a handful of core utility packages.

For the purpose of this course, it really doesn’t matter if you install Miniconda or Anaconda. it you’d rather save some disk space and go for a shorter download, we recommend you go for Miniconda.

  • Click here for instructions on how to install Miniconda/Anaconda.

If you’d rather install Python outside of Anaconda or Miniconda, check out our instructions on how to install Python.

If you encounter issues whilst installing any of the above, feel free to get in touch by opening an issue on the course repository.

Install Python 3 (outside of Anaconda/Miniconda)

GNU/Linux

On most GNU/Linux distributions, the command python points to the system’s Python 2 interpreter. Instead, Python 3 is often available as the python3 package (and the python3 command).

On Ubuntu/Debian (and probably Linux Mint), you can install Python 3, the pip package manager and the venv module using the apt package manager:

sudo apt install python3 python3-pip python3-venv

On Fedora, Python 3 should already be there. In case it’s not, you can install it with

sudo dnf python3

This should include pip and the venv module.

Be sure to check your installation by opening a terminal and running ~python –version~.

MacOS

  1. Install homebrew (see the installation instructions).

  2. Install Python 3

    brew install python3

That’s it. Be sure to check your installation by opening a terminal and running ~python –version~.

Windows

  1. Download the installer for the latest stable version of python here. (Most likely the Windows x86-64 executable installer).
  2. Execute the Python installer - be sure to tick Add Python 3.8 to PATH.

Be sure to check your installation by opening a command prompt and typing ~python –version~.