How to setup Python on the Server

How to setup Python on the Server

This article explains how to set up the ServiceDesk Plus MSP 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. Start the setup and follow the onscreen instructions to complete the installation.

Once you've downloaded the exe file to install python follow the below steps:

(i) 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. 

(ii) In screen-2, click on Next.

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

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

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.

5. It is recommended to install a python library called 'functions' to make API calls. 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 functions' and that would install the requests module. 

                  New to ADSelfService Plus?

                    • Related Articles

                    • Script: Send reminders to technicians when there is no update for 2 hours

                      Prerequisites: 1. Python Installation Steps :  https://pitstop.manageengine.com/portal/kb/articles/how-to-setup-python-on-the-server 2. functions.py :  This package consists of all the functions that are used to handle the standard requirements of ...
                    • Send notification based on custom date additional field using Python Script

                      1.Download the contents and paste it under \ManageEngine\ServiceDeskPlus-MSP\integrations\Custom_scripts. 2.Go to Reports tab --> New query report --> copy the query to the query editor and run the report. Save the report in the folder.  SELECT ...
                    • Script to send notification to users on upcoming contracts

                      Please follow the below link to setup python on the server https://pitstop.manageengine.com/portal/en/kb/articles/how-to-setup-python-on-the-server-11-11-2019 Steps to configure 1.  Extract the attached zip file in <Home>/integration/custom_scripts ...
                    • 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. Start the setup and ...
                    • 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 ...