Step 1: Installing Python
Install a supported version of Python from the Python Windows downloads page. During installation, choose to add Python to the PATH and/or environment variables (depending on the prompt).
Step 2: Creating and Configuring a Virtual Environment
The venv Python module is a virtual environment builder that lets you create isolated Python environments. We recommend installing the CLI in a virtual environment.
Installing and Activating your Virtual Environment.
After Python is installed, set up a virtual environment for your operating system using the following steps.
Step 3: Installing the Command Line Interface
You can download the CLI from GitHub or install the package from Python Package Index (PyPI).
To install using the GitHub download:
Linux and Unix (Including Oracle Linux 8)
Note*-To run a 'silent' install that accepts all default values with no prompts, use the--accept-all-defaults parameter.
If you're using Oracle Linux 7, you can use yum to install the CLI.
To use yum to install the CLI:
sudo yum install python36-oci-cli
The CLI will be installed to the Python site packages:
Documentation and examples will be installed in the/usr/share/doc/python36-oci-cli-
To uninstall the CLI:
sudo yum remove python36-oci-cli