-
Christophe974 authoredChristophe974 authored
venv_python.rst 1010 B
Setting up the virtual environement
It's best to use virtualization to install Sen2Chain properly. There are different virtual environments for Python. Here we present the procedure for venv.
First you need to install venv Python :
sudo apt install python-3-venv
Then, create your venv workspace where Sen2Chain will be installed :
python3 -m venv --system-site-package ~/.venv_sen2chain
The --system-site-package is important because it allows you to retrieve glbally installed packages such as GDAL. The command will create a folder containing the Python packages for this virtual machine.
Next, activate the new environment (the basic name of the start prompt will change):
source ~/.venv_sen2chain/bin/activate
This virtual environment can then be deactivated as follows
deactivate
Once the environment has been activated, the following python packages can be installed.