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.
- Before installing the Python dependency library, install GCC/G++, Make, CMake, and glibc on the management node. Table 1 lists the version requirements.
- 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.)
- Optional: Create and activate a virtual environment.
conda create -n OmniAdvisor2.0 python=3.9.9 conda activate OmniAdvisor2.0
- 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"
Parent topic: Installing the Feature