Getting started
Let’s start with Python
We’re finally here!
We need Python before we can start. To handle that we will use a tool called UV. Check out the documentation here if you are curious.
Installing UV
UV simplifies the process of installing and running Python, and can help us organise our various Python projects too.
Open the Mac Terminal by:
- Pressing
Command(⌘) +Spacebarto open Spotlight Search - Typing “Terminal” in the search field
- Pressing
Return(Enter) to launch the Terminal
Next, copy-paste the following command into your terminal window, and then hit Return:
curl -LsSf https://astral.sh/uv/install.sh | shCongrats, you now have UV installed.
Open the bash terminal, and run the following command:
curl -LsSf https://astral.sh/uv/install.sh | shCongrats, you now have UV installed.
Open PowerShell by:
- Pressing the Windows key
- Typing “powershell”
- Clicking
Windows PowerShell
Next, copy-paste the following command into your PowerShell window, and then hit Return:
powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"Congrats, you now have UV installed.
Warning
Before continuing with this tutorial you should close and then re-open your terminal/PowerShell.
This will make sure that your newly installed UV is active. If you don’t do this, you might get errors!
Installing Python
Now that you have UV you can use it to install Python. Here’s the command:
uv python installIf you have any doubts, or if something went wrong and you have no idea what to do next, please ask a mentor!