Hello,
My name is Soumitra Dutta, Oxford based, How do you usually set up Python for ArcGIS Pro on a Windows system here in the USA? I’d appreciate any suggestions from the group.
Pro comes with python installed. Did you read some of the basic information?
ArcGIS Pro Python reference—ArcGIS Pro | Documentation
Python in ArcGIS Pro—ArcGIS Pro | Documentation
Just follow the links on setting up you IDE and whether you want to install packages in a cloned environment. The base package setup is in the arcgispro-py3 location.
Hey @soumitradutta01
Usually setting up Python in ArcPro is just installing ArcGIS Pro and using the Python inside. If you need to install additional packages, there's typically a process where you clone the instance of ArcGIS Pro's Python packages and then you can install them. If you would like to use Python outside of the ArcGIS Pro instance and use it for Visual Studio Code or another IDE, you can link the interpreter to the Python package in ArcGIS Pro here usually one of these two locations:
c:\Program Files\ArcGIS\Pro\bin\Python
c:\Users\"User Name"\AppData\Local\Programs\ArcGIS\Pro\bin\Python
Let me know if this helps out!
Cody
Note that for most IDEs, you'll want to link to the python executable inside whatever environment you're currently using. For the built-in env these paths are:
"%SYSTEMDRIVE%\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\python.exe" (all users install)
"%LOCALAPPDATA%\Programs\ArcGIS\bin\Python\envs\arcgispro-py3\python.exe" (single user install)
For the custom environments you can create through Pro you'll want to note the folder it's created in and then use the python.exe inside that folder. Unless something's changed most IDEs cannot pick up on the current Pro python environment so you'll have to change which interpreter you use on both ends; if someone's found a way to make this automatic I'd love to know!