首页 > 编程语言 > 详细

arcgis python 获得arcgis安装版本和安装位置

时间:2019-09-30 18:58:30      阅读:150      评论:0      收藏:0      [点我收藏+]
import arcpy

print(arcpy.GetInstallInfo()[Version])

 

 和获得ArcGIS版本和安装位置

import arcpy

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

SourceDir : G:\setup\arcgis10.2.2\arcgis10.2.2\ArcGIS_Desktop_1022_140090\Desktop\SetupFiles\
InstallDate : 2019.07.19
InstallDir : c:\program files (x86)\arcgis\desktop10.2\
ProductName : Desktop
BuildNumber : 3552
InstallType : N/A
Version : 10.2.2
SPNumber : N/A
Installer : dell
SPBuild : N/A
InstallTime : 17:43:58

arcgis python 获得arcgis安装版本和安装位置

原文:https://www.cnblogs.com/gisoracle/p/11613791.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!