Skip to content

Install Python#

The following describes how to set up your development environment for working on this project. For this specific tutorial we will be installing Python 3.8, but you can install any version you like (recommend installing the latest).

pyenv#

pyenv is a Python version manager written in shell script; it allows you to install and manage different version of python. See this guide on installation. Once installed simply run:

pyenv install 3.8

Tip

See this for more info on usage.

uv#

Tip

This is the recommended way of installing Python.

uv is an Python package and project manager. It has many useful features, including the ability to download and manage different Python versions.

Installation

See this guide on installation.

To install - say - Python 3.8, run:

uv python install 3.8

Usage

See this for more info on usage.

Unix/MacOs#

If you are using a Unix-based (like Linux) or Unix-like (like MacOS) system, you can find Python in your prefered package manager.

Tip

On some version of Ubuntu you may need to use the deadsnakes PPA repository to install Python.

If you are on such a version, run this command first:

sudo apt-get install software-properties-common
sudo add-apt-repository ppa:deadsnakes/ppa

Then run the below:

sudo apt-get update
sudo apt-get install python3.8 # install Python 3.8
sudo dnf install python3.8

Tip

If you have an AUR helper like yay, you can specify the specific Python package you want in the Arch User Repository (AUR): yay -S python38

sudo pacman -S python3.8

Homebrew Installation

If you do not have Homebrew installed on your OS X terminal, you can install it using the following command:

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
brew install python3.8

Windows#

See this guide on how to install Python on Windows.