在ArcGIS Pro 1.3之外运行arcpy独立脚本

本文介绍了如何在ArcGIS Pro 1.3版本之外独立执行arcpy脚本,包括使用Python IDE和批处理。由于ArcGIS Pro 1.3开始采用Conda管理Python包,环境发生变化,用户需要了解新的Python安装位置和如何访问arcgispro-py3环境。执行脚本可以通过交互式命令行、执行py文件或批处理py文件的方式,而在Python IDE中设置正确的解释器路径是避免导入arcpy模块时出错的关键。
摘要由CSDN通过智能技术生成

背景

ArcGIS Pro像ArcMap一样,其中也嵌入了Python。 不同在于ArcGIS Pro采用了python较新的版本3.4,ArcMap仍然沿用2.x版本。 ArcGIS Pro 1.3版本开始Python环境有点小变化,为了方便包管理esri开始采用Conda。 并且不像开始 ArcGIS Pro 1.1,1.2 版本,需要单独安装Python for ArcGIS Pro,在1.3版本python包随ArcGIS Pro一同自行安装。

文档的原文摘过来能更好的理解esri采用Conda的意图:

Python has a rich ecosystem of preexisting packages that can be leveraged within ArcGIS, but managing which packages are installed on a system can be a complex and time-consuming task, especially when working on multiple projects or trying to share code with others.

To leverage this versatility, the Python community has created methods to easily create projects in multiple versions of Python and simplifies the process of installing nearly all publicly available Python packages. Conda is the most popular and widely used Python package manager.

看到这里,你也也许和我有一样的疑问,啥是Conda?

评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值