Python#
Python is a very popular programming language. Let’s setup your computer to develop in Python and use Python software.
Install Python#
On Windows and macOS, it is reasonable to install Python from the official Python website (https://www.python.org). On Linux, one usually already has a Python interpreter. However, it is important to install few missing parts.
Install Python by downloading and executing an installer here: https://www.python.org/downloads/windows/.
You can install Python following the instructions of this page.
Alternatively, just run:
brew install python
sudo apt install python3-dev python3-pip python3-venv
Note
For Windows, you should install Python twice, on the Windows and the Ubuntu-WSL sides.
Pipx#
Once Python is available, we should install Pipx, which is an installer for applications based on Python.
py -m pip install pipx
Install directly with Python:
python3 -m pip install pipx
or with:
brew install pipx
python3 -m pip install pipx --break-system-packages
Finalize the installation by running:
py -m pipx ensurepath
python3 -m pipx ensurepath --prepend
python3 -m pipx ensurepath --prepend
Once Pipx is installed (you might need to open a new shell), you can install other Python based programs, like for example PDM:
pipx install pdm
UV#
UV is a new Python package and project manager written in Rust. Install UV as
described in
the website of this project.
Once this is done, open a new terminal and the command uv
should be available (one can
check uv --version
or uv -h
).
Then, we can use this command to install other software, for example Mercurial as presented later.