Installing Python#
There are several ways to install Python, we recommend to use uv.
Download and install uv
Open a command prompt and create a new environment in the directory where you will store your scripts and notebooks using
uv venv
.Activate the environment using
.venv\Scripts\activate
(Windows) orsource .venv/bin/activate
(Linux/Mac).Install common libraries (
pip install pandas matplotlib jupyterlab
)Start Jupyter lab (
jupyter lab
)You are now ready to start working with Python
Test your installation#
Open command prompt
Navigate to the directory where you created your environment using
cd <path_to_your_directory>
Activate the environment using
.venv\Scripts\activate
(Windows) orsource .venv/bin/activate
(Linux/Mac).Start python (
python
)Run the following lines of code:
import sys
import numpy as np
import pandas as pd
import matplotlib as mpl
print(f"Python version: {sys.version}")
print("NumPy: " + np.__version__)
print("Pandas: " + pd.__version__)
print("Matplotlib: " + mpl.__version__)
Can you say yes to the following questions?
My Python version is 3.11 or greater
My NumPy version is 2.0 or greater
My pandas version is 2.0 or greater
My matplotlib version is 3.10 or greater