4.3.1 Commands Summary for Installing Required Supporting Packages for Linux for On-Premises Databases

The commands used for installing required supporting packages for linux for On-Premises databases are listed in the following example.

Example 4-3 Installing required packages on OML4Py client machine

pip3.12 install pandas==2.1.1
pip3.12 install scipy==1.12.0
pip3.12 install matplotlib==3.7.2
pip3.12 install oracledb==2.0.1
pip3.12 install joblib==1.2.0
pip3.12 install scikit-learn==1.2.1
pip3.12 install numpy==1.26.4

Example 4-4 Installing required packages on OML4Py server machine

Installs the commonly required packages on Oracle Linux 7 and Oracle Linux 8:

pip3.12 install pandas==2.1.1--target=$ORACLE_HOME/oml4py/modules
pip3.12 install scipy==1.12.0 --target=$ORACLE_HOME/oml4py/modules
pip3.12 install oracledb==2.0.1 --target=$ORACLE_HOME/oml4py/modulesdules
pip3.12 install joblib==1.2.0 --target=$ORACLE_HOME/oml4py/modules
pip3.12 install numpy==1.26.4 --target=$ORACLE_HOME/oml4py/modules

Build the scikit-learn 1.2.1 python module on both Oracle Linux 7 and Oracle Linux 8.

Download scikit_learn-1.2.1: scikit_learn-1.2.1.tar.gz
tar xvfz scikit-learn-1.2.1.tar.gz
cd scikit_learn-1.2.1

pip3.12 install setuptools
python3 -m pip install —upgrade build
python3 -m build

pip3.12 install ./dist/scikit_learn-1.2.1-cp312-cp312-linux_x86_64.whl

Build matplotlib 3.7.2 on Oracle Linux 7:

Download matplotlib-3.7.2: matplotlib-3.7.2.tar.gz

tar xfvz matplotlib-3.7.2.tar.gz
cd matplotlib-3.7.2/

python3 -m pip install setuptools
python3 -m pip install —upgrade build
export CFLAGS=-std=c++11
python3 -m build

python3 -m pip install ./dist/matplotlib-3.7.2-cp312-cp312-linux_x86_64.whl —target=$ORACLE_HOME/oml4py/modules