Installing the Python Client from PyPI

Starting from Oracle Graph Server and Client Release 23.1, you can install the Python client from PyPI.

You can install the oracle-graph-client-23.1.0.zip package from the PyPI repository using pip.
Before installing the Python client from PyPI, your system must meet the prerequsites mentioned in Prerequisites for Installing the Python Client. In addition:
  • Ensure that you set the JAVA_HOME environment variable.
  • If you are behind a proxy, then set the https_proxy environment variable to the proxy server.

You can install and verify the Python client installation as shown:

  1. Install the client through pip.
    For example,
    pip install --user oracle-graph-client

    This installs the Python client along with all the required dependencies.

  2. Verify that your installation is successful.
    $ python3
    Python 3.8.12 (default, Apr  5 2022, 08:07:47)
    [GCC 8.5.0 20210514 (Red Hat 8.5.0-10.0.1)] on linux
    Type "help", "copyright", "credits" or "license" for more information.
    >>> import opg4py
    >>> import pypgx

    See Also:

    Python API Reference for more information on the Python APIs