Python IDLE arcpy设置环境变量

时间:2023-03-09 07:27:42
Python IDLE arcpy设置环境变量

在IDLE中

import arcpy

help(arcpy)

得到的路径为:

Python IDLE arcpy设置环境变量

但是在arcmap中,路径为:

Python IDLE arcpy设置环境变量

说明IDLE的环境变量设置有问题:

在windows的环境变量中设置环境变量PYTHONPATH(没有的话自己新建),设置为:C:\Program Files (x86)\ArcGIS\Desktop10.5\arcpy

结果为:

Python IDLE arcpy设置环境变量

https://www.zhihu.com/question/49676168

相关文章