Installing Python

Installing Python#

There are several ways to install Python, for scientific applications we recommend to use the Mambaforge distribution.

  1. Download and install Python using the Mamba installer for Windows from Mambaforge

  2. Open miniforge prompt

  1. Install common libraries (mamba install pandas matplotlib jupyterlab)

  2. Start Jupyter lab (jupyter lab)

  3. You are now ready to start working with Python

Test your installation#

  1. Open miniforge prompt

  2. Start python (python)

  3. 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.21 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).