Skip to content

Installation - virtualenv

If the program need to use Python libraries that are not available on the system, then the user have to install them by her/himself using the virtual environment. This can be done by following the instructions below.

  1. Start the interactive session.
  2. Load the Python interpreter from the list of available modules.
  3. Create the virtual environment (Python 3.x): python3.6 -m venv my_env_name (where my_env_name is the name of the new folder where the virtual environment will be created.
  4. Activate the environment: source. /my_env_name/bin/activate.
  5. Update the tool: pip install --upgrade pip
  6. Install the necessary libraries, for example pip install numpy
  7. The virtual environment is ready. After completing the work, just type the deactivate command. When you come back to work with Python again, remember to activate the enviroment again (point 3) - only then will the locally installed libraries be available.
Ta strona używa plików cookies.
Polityka Prywatności    AKCEPTUJĘ