补充 arcpy 限制说明:Python 2.7 环境 + Excel 输出需分离 #21
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
背景
Windows 平台套件使用
runtime: arcpy时,实际上调用的是 ArcGIS 10.x 自带的 Python 2.7,不是 agc 内置的 Python 3。关键限制
1. arcpy 本质是 Python 2.7
Python 2.7 已于 2020 年停止维护,很多现代库无法安装:
openpyxl— 不支持 Python 2.7pandas— 最后支持 2.7 的是 0.24.x(2019年)requests— 最后支持 2.7 的是 2.27.xjson,csv,os,sys— 标准库可用2. Excel 输出必须用 python3 步骤
arcpy 步骤无法生成 xlsx,需要拆一个单独的
python3步骤:需要更新的文档
suite-developer/TOOLS.mdsuite-developer/MEMORY.mdsuites-help/开发者指南/Workflow-规范.mdsuites-help/开发者指南/脚本开发指南.mdsuites-help/开发者指南/最佳实践.mdsuites-help/示例代码/Hello-World.md建议
在 runtime 说明表中补充:
@Admin
引用:
gis-actions#31