This is no-nonsense tutorial to get you up and running with Python, locally on your machine in a way that can start doing real engineering work via a Jupyter Notebook.
This tutorial skims over some important aspects of Python project setup but the main objective here is to get you started. You can learn the ins and outs as you gain comfort.
There are a few steps here that might seem obtuse and unfamiliar, don’t worry. As you gain experience you will understand how the PowerShell and command prompt can be extremely powerful tools to increase your efficiency.
If you haven’t already, install the latest version of PowerShell. See instructions here.
In the tutorial, I’m using Version 7.5.0.3.
Open up the windows command prompt and run:
winget install --id Microsoft.Powershell.Preview --source winget
uv and Use it to Manage PythonI recommend a clean installation for ease of use so assuming Python is not installed:
Using PowerShell, install uv:
Invoke-WebRequest -Uri https://astral.sh/uv/install.ps1 -OutFile install.ps1; powershell -ExecutionPolicy Bypass -File ./install.ps1
Now that uv is installed, you can use it to install Python:
To install the latest version of Python, run:
uv python install
You can also install a specific version like this uv python install 3.12.6.
Verify the Python installation by checking the version:
uv python --version
After this, uv will manage your Python installation.