Skip to content

Virtual environment setup§

There are several resources out there to guide you through virtual environments and package management with Python. These are our personal recommendations for you to start.

Note about mamba

All conda commands in the following guide can be replaced by mamba. Mamba is a faster version of the conda package manager, and is installed by default with miniforge.

Step 1 - Follow online guide§

Follow this great online guide for installing miniforge and creating virtual environments:

Miniforge setup

Tip

After you've completed the tutorial, you may want to delete the 'sklearn-env' environment you created as an example. You can check the list of environments with

conda env list
The asterisk shows you which environment is currently active. Make sure to deactivate the 'sklearn-env' environment first (with conda deactivate), and then run
conda env remove -n sklearn-env

Step 2 - Create a virtual environment for ozzy§

In your terminal, create a new environment with

conda create -n ozzy-env

Make sure to activate this environment before you install or use ozzy:

conda activate ozzy-env

with venv§

Step 1 - Install Python§

Make sure you have Python installed on your system. Ozzy requires the version of Python to be 3.10 or higher.

Step 2 - Follow online guide§

Follow the instructions in the guide for venv, which is a virtual environment tool built into Python:

Create and use virtual environments

Step 3 - Create a virtual environment for ozzy§

In your terminal, create a new environment with

python3 -m venv .ozzy-env

Make sure to activate this environment before you install or use ozzy:

source .ozzy-env/bin/activate