Setting Up AP Python on Linux in a Development Environment

Learn about installating AP Python on Linux in a development environment.

The steps to set up the AP Python on a Linux platform in a development environment are described in the section.

Verifying prerequisites

Ensure that the following prerequisites are met:

  • Python 3, version from 3.7 to 3.11, must be installed on the machine.
  • Latest version of pip, the Python package manager, must be installed.

Extracting the AP Python installation package

Note: <arch> can be x86-64 or arm64.

To set up the AP Python on the Linux platform in development environment.

  1. Download the ApplicationProtector_Linux-ALL-64_<arch>_PY-<py_version>_<version>.tgz file to any location on the machine where you want to install the protector.

  2. Extract the AP Python installation package using the following command.

    tar –xvf ApplicationProtector_Linux-ALL-64_<arch>_PY-<py_version>_<version>.tgz
    

    The following setup files are extracted:

    Note: Here, <arch> can be x64 or arm64.

    • LogforwarderSetup_Linux_<arch>_<version>.sh
    • RPAgentSetup_Linux_<arch>_<version>.sh
    • APPythonSetup_Linux_<arch>_<version>.sh
    • APPythonDevSetup_Linux_<arch>_<version>.tar

Installing AP Python in a Development Environment

Note: Here, <arch> can be x64 or arm64.

  1. Run the following script to install AP Python in a development environment.

    pip install APPythonDevSetup_Linux_<arch>_<version>.tar
    

    This installs the AP Python in the development environment on the Linux platform. The default installation directory for the Linux platform is /usr/local/lib/python<version>/site-packages.

  2. Verify that the following directories are created in the AP Python site-packages installation directory:

    • appython
    • mocks
    • pypepprovider
  3. To verify the version of the AP Python, run the following command:

    pip list
    

    The name and version of the installed AP Python package are displayed on the console.

    appython-dev 10.0.0+x
    

    For information on how to use the AP Python APIs in a development environment, refer to Using AP Python in a development environment.

  4. Perform the following steps to access the AP Python Pydoc, which contains the API documentation.

    • Run the following command to extract the AP Python setup file:

      tar –xvf APPythonDevSetup_Linux_<arch>_<version>.tar
      

      The appython_dev-<version> directory is extracted.

    • Navigate to the appython_dev-<version>\docs\ directory.

    • Open the index.html file in a browser to access the AP Python Pydoc.

    If you are setting up the AP Python in a virtual Linux environment, then convert the appython_dev-<version>\docs\ directory to a zip file and download it locally. You can then open the index.html file in a browser to access the AP Python Pydoc.

Uninstalling AP Python from the Development Environment

To uninstall the AP Python from the development environment:

  1. Login to the machine where AP Python is installed.

  2. Uninstall the AP Python by running the following command.

    pip uninstall appython-dev
    
Last modified : September 11, 2026