ArcGIS Desktop

  • ArcGIS Pro
  • ArcMap

  • My Profile
  • Hilfe
  • Sign Out
ArcGIS Desktop

ArcGIS Online

Die Mapping-Plattform für Ihre Organisation

ArcGIS Desktop

Ein vollständiges professionelles GIS

ArcGIS Enterprise

GIS in Ihrem Unternehmen

ArcGIS Developers

Werkzeuge zum Erstellen standortbezogener Apps

ArcGIS Solutions

Kostenlose Karten- und App-Vorlagen für Ihre Branche

ArcGIS Marketplace

Rufen Sie Apps und Daten für Ihre Organisation ab.

  • Dokumentation
  • Support
Esri
  • Anmelden
user
  • Eigenes Profil
  • Abmelden

ArcMap

  • Startseite
  • Erste Schritte
  • Karte
  • Analysieren
  • Verwalten von Daten
  • Werkzeuge
  • Erweiterungen

GetInstallInfo

  • Zusammenfassung
  • Syntax
  • Codebeispiel

Zusammenfassung

Returns a dictionary that contains information about the installation.

Syntax

GetInstallInfo ()

Rückgabewert

DatentypErklärung
Dictionary

The function returns a dictionary containing the properties of the installation.

The dictionary keys are as follows:

  • BuildNumber—The build number.
  • InstallDate—The installation date.
  • InstallDir—The installation location.
  • InstallTime—The time of installation.
  • InstallType—The installation type (or N/A).
  • Installer—The installer of the installation.
  • ProductName—The product installed (Desktop, Server, Engine, or ArcGISPro).
  • SPBuild—The service pack build (or N/A).
  • SPNumber—The service pack build number (or N/A).
  • SourceDir—The source directory.
  • Version—The product version.

Hinweis:

Starting at ArcGIS Desktop 10.8.2, the version key returns a value that starts with 10.9.

Codebeispiel

GetInstallInfo example

Return installation information.

import arcpy

# Use the dictionary iteritems to iterate through the key/value pairs from 
# GetInstallInfo.
d = arcpy.GetInstallInfo()
for key, value in list(d.items()):
    # Print a formatted string of the install key and its value
    print("{:<13} : {}".format(key, value))
GetInstallInfo example 2

Return the product version.

import arcpy
print(arcpy.GetInstallInfo()['Version'])

Verwandte Themen

  • ListInstallations
  • Zugreifen auf Lizenzen und Erweiterungen in Python

ArcGIS Desktop

  • Startseite
  • Dokumentation
  • Support

ArcGIS

  • ArcGIS Online
  • ArcGIS Desktop
  • ArcGIS Enterprise
  • ArcGIS
  • ArcGIS Developer
  • ArcGIS Solutions
  • ArcGIS Marketplace

Über Esri

  • Über uns
  • Karriere
  • Esri Blog
  • User Conference
  • Developer Summit
Esri
Wir sind an Ihrer Meinung interessiert.
Copyright © 2021 Esri. | Datenschutz | Rechtliches