问题描述
我想在 spyder anaconda 中安装模块 arcpy。我在 Anaconda Prompt 中运行以下命令:conda install arcpy -c esri,它跟在 https://pro.arcgis.com/en/pro-app/latest/arcpy/get-started/installing-arcpy.htm 之后。但它失败了。消息显示如下:
python 版本是 3.7.10。我也在使用 ArcGIS Desktop 10.7.1。 有谁知道如何解决这个问题?谢谢
解决方法
您需要在 ArcGIS Pro conda 环境中运行 Spyder,即 c:\Progra~1\ArcGIS\Pro\bin\Python\envs\arcgispro-py3
见:https://pro.arcgis.com/en/pro-app/latest/arcpy/get-started/using-conda-with-arcgis-pro.htm