How to setup Python on the Server

How to setup Python on the Server

This article explains how to set up the ServiceDesk plus server to run python scripts.

1. The first step is to install python on the application server and you can download it from here . Any version above 3.4.1 should work fine. Once you've downloaded the exe file to install python follow the below steps. 

  1. Open the .exe file to install Python, enable "Add Python to Path" option available on the bottom of the screen and then click on Customize Installation. 

  2. In screen-2, click on Next.

  3. In screen-3, please choose "Install Python for All Users" and then click on Install.

  4. This will install Python for all user profiles within the system.


2. Once this is done, you should be able to access the Python Interpreter by typing 'Python' or 'Py' from Run or from a Command prompt.

3. Many of the scripts make API calls to perform various actions and a python library called 'requests' is used to handle this. This is not bundled with the default python package and has to installed separately. Open CMD with Admin privileges and execute the command 'py -m pip install requests' and that would install the requests module. You can find details about the requests module here.

4. Many of the scripts read Xls input perform various actions and a python library called 'xlrd' is used to handle this. This is not bundled with the default python package and has to installed separately. Open CMD with Admin privileges and execute the command 'py -m pip install xlrd' and that would install the xlrd module. You can find details about the xlrd module here.

      New to ADSelfService Plus?

        Resources

            • Related Articles

            • Collecting Environmental Variables Relating to Python in Linux/Windows/MacOSX

              When setting up a python script in the customer's end, a major challenge is relating to the following: Is Python installed or not? If installed, are the required modules installed or not? Answering the above will help us in overcoming the doubt of ...
            • Bulk Request Delete via python script invoked from command prompt

              Please refer to the below link to install and configure python on the server. https://pitstop.manageengine.com/portal/kb/articles/how-to-setup-python-on-the-server/ Steps for configuring the script: Extract the zip in a particular location, eg:  ...
            • Bulk User Delete based on Domain via python script invoked from command prompt

              Please refer to the below link to install and configure python on the server. https://pitstop.manageengine.com/portal/kb/articles/how-to-setup-python-on-the-server/ Steps for configuring the script: Extract the zip in a particular location, eg:  ...
            • How to migrate ServiceDesk Plus from one server to another

              Following are the steps to move data from the existing server to a new server, Step 1: Stop ManageEngine ServiceDesk Plus service. Step 2: Kindly Upgrade ServiceDesk Plus if required. Refer to the link below to check if you are in the latest version, ...
            • Bulk close Purchase Orders - Python

              Requirement: Delete older Purchase Orders. UseCase: Closing Purchase Orders from a external CSV. Please follow the below steps. Extract the attached scripts in a folder. Update the URL and integration key in the script. You can get the integration ...