# Python

This page is intended for users to install Python and an add environment to which VANTAGE6 can be installed.

Python can be installed in various ways. it is recommended to use environments. Python 3.3+ comes venv, but you can also use other tools like miniconda. In case you use miniconda, you do not need to install python separately as it comes with it. We only explain the case where you use Python venv or in case you use miniconda but other environment managers should also work.

# Setup using venv

Install Python 3.3+ from their website. Once installed, create a virtual environment:

Bash
Windows
Bash
python3 -m venv /path/to/new/virtual/environment
Windows
c:\>c:\Python35\python -m venv c:\path\to\myenv

In the case of Windows, you need to specify the full path to the python executable. To avoid this you could also add the folder which contains the python executable to the environment variable PATH.

To activate an environment:

Bash
Windows
Bash
source <venv>/bin/activate
Windows
C:\> <venv>\Scripts\activate.bat

# Setup using miniconda

Install miniconda from their website. Once installed, create a virtual environment:

conda create -n environment python=3.7

On windows, during installation you have to option to add the commands to the PATH variable. If you do not do this, you need to execute the commands above in the Anaconda Prompt (which should already be installed)

To activate an environment:

Bash
Windows
Bash
conda activate environment
Windows
activate environment