arcgis python 获得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))
install:desktop
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
Completed script 许可...
成功 在 Sat Nov 02 20:39:01 2019 (经历的时间: 0.05 秒)
【推荐】100%开源!大型工业跨平台软件C++源码提供,建模,组态!
【推荐】园子的不务正业:向创业开发者推荐「楼盘」- 杭州云谷中心
【推荐】2025 HarmonyOS 鸿蒙创新赛正式启动,百万大奖等你挑战
【推荐】天翼云爆款云主机2核2G限时秒杀,28.8元/年起!立即抢购