"LINK VISUAL STUDIO CODE WITH ARCGIS 10.6.1"

449
1
06-22-2021 03:50 AM
SethabileNgcobo
New Contributor

Hello I'm Sethabile and I'm wondering I can link VS Code to ArcGis 10.6.1 so I can access the GIS libraries?

Thanks

0 Kudos
1 Reply
GeoJosh
Esri Contributor

Sethabile,

Which library are you referring to? Arcpy or the ArcGIS Python API?

If you are referring to arcpy, you will need to set the Python interpreter in VSCode to the one that is installed alongside ArcGIS Pro. The default location of this interpreter is: "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\python.exe"

If you are referring to the Python API, you can either follow the steps above, or install the Python API in existing Python installation by following the steps outlined in this documentation. After doing so, follow the steps in the first link to set this Python environment in VSCode.

Hope this helps. Let me know if you have any other questions.

Josh