Installing Python#
There are several ways to install Python, for scientific applications we recommend to use the Mambaforge distribution.
Download and install Python using the Mamba installer for Windows from Mambaforge
Open miniforge prompt
Install common libraries (
mamba install pandas matplotlib jupyterlab
)Start Jupyter lab (
jupyter lab
)You are now ready to start working with Python
Test your installation#
Open miniforge prompt
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.9 or greater
My NumPy version is 1.23 or greater
My pandas version is 1.3 or greater
My matplotlib version is 3.4 or greater
If not, then update the packages (mamba update x
).