Rate This Document
Findability
Accuracy
Completeness
Readability

Installing the Python Dependency Library

You are advised to use the Anaconda virtual environment to prevent the Python environment from being affected. Decide whether to enable Anaconda.

This section uses Anaconda as an example. Before installing Anaconda, install the GCC/G++, make, CMake, and glibc components. After the components are installed, download, install, and initialize Anaconda, create an OmniAdvisor virtual environment, and install required dependencies.

  1. Before installing the Python dependency library, install GCC/G++, Make, CMake, and glibc on the management node. Table 1 lists the version requirements.
    Table 1 Software to be configured before installing the Python dependency library

    Item

    Version

    Reference Document

    GCC/G++

    7.3.0 or later

    Link

    make

    4.2.1 or later

    -

    CMake

    3.13.4 or later

    Link

    glibc

    2.28 or later

    Link

    swig

    3.0 or later

    -

  2. Optional: On the management node, install the Anaconda software package. (You are advised to install Miniforge on Arm servers. For details, see the official Miniforge repository at GitHub.)
  3. Optional: Create and activate a virtual environment.
    conda create -n OmniAdvisor2.0 python=3.9.9
    conda activate OmniAdvisor2.0
  4. Install the dependencies.
    pip install "django>=4.2.10, <4.3.0"
    pip install "smac>=2.2.0, <2.3.0"
    pip install "colorlog>=6.9.0, <6.10.0"
    pip install "requests>=2.32.3"
    pip install "python-dateutil>=2.9.0.post0"
    pip install "psycopg2-binary>=2.9.10"
    pip install "django-sslserver==0.22"
    pip install "django-csp==3.8"
    pip install "keyring==24.3.1"
    pip install "keyrings-alt==5.0.2"