Link Search Menu Expand Document
Papers Video GitHub EXPEKCTATION About

Using a Virtual Environment


This example uses python3.6 but you can use python3.7, python3.8, python3.9 or python3.10.

Create and activate a new virtual environment:

sudo apt-get install python3.6-venv
python3.6 -m venv env
source env/bin/activate

Update pip:

python3 -m pip install -U pip

With this new version of pip, it may happen that you have to clear the pip cache:

python3 -m pip cache purge

Now you can do the installation of PyXAI, two installation methods are available:

If you want to install dependencies without any internet connection, you can build a requirement.txt file from a computer with a internet connection:

python3 -m pip freeze > requirements.txt 
python3 -m pip download -r requirements.txt -d requirements-download/
pip install -r requirements.txt --find-links=requirements-download --no-index

For deactivating the environment: