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

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

  1. Download the ApplicationProtector_Linux-ALL-64_x86-64_PY-3.11_\<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_x86-64_PY-3.11_<version>.tgz
    

    The following setup files are extracted:

    • LogforwarderSetup_Linux_x64_\<version>.sh
    • RPAgentSetup_Linux_x64_\<version>.sh
    • APPythonSetup_Linux_x64_\<version>.sh
    • APPythonDevSetup_Linux_x64_\<version>.tar

Installing AP Python in a Development Environment

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

    pip install APPythonDevSetup_Linux_x64_<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_x64_<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 : January 19, 2026