HOW TO

Determine the installation location and version of ArcGIS Desktop using Python

Last Published: April 25, 2020

Summary

Instructions provided include a Python script that prints the current install location and version of ArcGIS Desktop.

Procedure


Code:
#PYTHON SCRIPT
import arcgisscripting
gp = arcgisscripting.create(93)

d = gp.GetInstallInfo('desktop')
keys = d.keys()
keys.sort()

for k in keys:
print "%s : %s" % (k, d[k])

import os
os.system("pause")

    Article ID:000010833

    Software:
    • ArcMap

    Receive notifications and find solutions for new or common issues

    Get summarized answers and video solutions from our new AI chatbot.

    Download the Esri Support App

    Discover more on this topic

    Get help from ArcGIS experts

    Contact technical support

    Download the Esri Support App

    Go to download options