alex_bn_lee

导航

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

统计

[1052] Add the ArcPy Python interpreter in VS Code

To add the ArcPy Python interpreter in Visual Studio Code (VS Code), follow these steps:

  1. Install ArcGIS Pro: Ensure you have ArcGIS Pro installed, as it includes the ArcPy library.

  2. Install VS Code: Download and install Visual Studio Code from the official website.

  3. Install the Python Extension: Open VS Code, click on the Extensions icon on the left sidebar, search for “Python,” and install the extension provided by Microsoft.

  4. Open Command Palette: Press Ctrl+Shift+P (or Cmd+Shift+P on macOS) to open the Command Palette.

  5. Select Interpreter: Type Python: Select Interpreter in the Command Palette and select it.

  6. Enter Interpreter Path: Choose Enter interpreter path and navigate to the ArcGIS Pro Python interpreter. The default path is usually:

    C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\python.exe
  7. Verify: You can verify the selected interpreter by checking the bottom-left corner of the VS Code window, where the current interpreter is displayed12.

This setup will allow you to use ArcPy within VS Code for your GIS workflows. If you encounter any issues, feel free to ask for more help!

posted on   McDelfino  阅读(17)  评论(0编辑  收藏  举报

相关博文:
阅读排行:
· DeepSeek 开源周回顾「GitHub 热点速览」
· 记一次.NET内存居高不下排查解决与启示
· 物流快递公司核心技术能力-地址解析分单基础技术分享
· .NET 10首个预览版发布:重大改进与新特性概览!
· .NET10 - 预览版1新功能体验(一)
历史上的今天:
2014-08-29 【147】收藏视频
点击右上角即可分享
微信分享提示