I want to have an Anaconda environment that will use the Python interpreter installed with ArcGIS Pro.
I am working in Windows. I have been using Anaconda Prompt to configure virtual environments, and this works fine. However, I would like to create an Anaconda virtual environment that uses the Python interpreter installed with ArcGIS Pro, so that I can import ArcPy and use ArcPy in that environment.
The Python interpreter that I think I should use is in C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\python.exe
When I run conda info --envs I get something like C:\Users\MyName\Anaconda3
for all of my environments. I think I would like to change that path to C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\python.exe
Is this the right approach, and is this possible? Is there another (or better) way to use ArcPy in conda environments if I installed Anaconda first?
where conda
in the command prompt? Does it listC:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3
or something similar?