6.5 Conda Environment Best Practices
This section highlights the best practices for creating conda environments in OML4Py to prevent Python and third/fourth-party dependency conflicts.
Python Version
python=3.13.x, when creating
a Conda environment for a 3rd-party package to avoid
inconsistencies. To determine the latest Python version being used,
run the following
command:import sys
sys.versionNote:
To prevent dependency conflicts, you can create a new environment
and install all required packages simultaneously using the
create command. This allows the
solver to resolve all dependencies at once.
Admin Task: Create and Upload a Conda Environment
Use the create command to create a Conda
environment named mypyenv to install the seaborn
package. Specify the Python version using the
python parameter. Use the
upload command to upload the
mypyenv environment to the Object Storage
associated with the Autonomous AI Database instance for an OML user
to download and use it.
%conda
create -n mypyenv -c conda-forge --override-channels --strict-channel-priority python=3.13.5 seaborn
upload mypyenv --overwrite -t application "OML4PY"OML User: Use a Conda Enviroment
%conda
download mypyenv
activate mypyenvseaborn
library:%python
import seaborn Parent topic: Install Third-Party Packages