Setting Up 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.
Download the
ApplicationProtector_Linux-ALL-64_x86-64_PY-3.11_\<version>.tgzfile to any location on the machine where you want to install the protector.Extract the AP Python installation package using the following command.
tar –xvf ApplicationProtector_Linux-ALL-64_x86-64_PY-3.11_<version>.tgzThe following setup files are extracted:
LogforwarderSetup_Linux_x64_\<version>.shRPAgentSetup_Linux_x64_\<version>.shAPPythonSetup_Linux_x64_\<version>.shAPPythonDevSetup_Linux_x64_\<version>.tar
Installing AP Python in a Development Environment
Run the following script to install AP Python in a development environment.
pip install APPythonDevSetup_Linux_x64_<version>.tarThis 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.Verify that the following directories are created in the AP Python site-packages installation directory:
- appython
- mocks
- pypepprovider
To verify the version of the AP Python, run the following command:
pip listThe name and version of the installed AP Python package are displayed on the console.
appython-dev 10.0.0+xFor information on how to use the AP Python APIs in a development environment, refer to Using AP Python in a development environment.
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:The
tar –xvf APPythonDevSetup_Linux_x64_<version>.tarappython_dev-<version>directory is extracted. - Navigate to the
appython_dev-<version>\docs\directory. - Open the
index.htmlfile 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.- Run the following command to extract the AP Python setup file:
Uninstalling AP Python from the Development Environment
To uninstall the AP Python from the development environment:
- Login to the machine where AP Python is installed.
- Uninstall the AP Python by running the following command.
pip uninstall appython-dev
Feedback
Was this page helpful?