ArcPro is distributed with a [[conda environment]] called `arcgispro-py3`. To activate this environment, simply run the `proenv.bat` file in (the location of your file may vary) ``` c:\Progra~1\ArcGIS\Pro\bin\Python\scripts\proenv.bat ``` > [!Tip] > To run `proenv.bat` file, I would open Bash from my project folder and use > ```bash >C:/Users/Erik_Anderson/AppData/Local/Programs/ArcGIS/Pro/bin/Python/Scripts/proenv.bat > ``` This is a regular `conda` environment, so you can review the available libraries and their versions using `conda list`. > [!Warning] > You can modify the `arcgispro-py3` library like you would other conda environments, however this is not recommended. Because [[Jupyter Notebook]] is distributed with this environment, simply type `jupyter notebook` after activating the `arcgispro-py3` environment to launch a notebook. To use `arcgispro-py3` in [[VS Code]], open the command palette (`Ctrl + Shift + P`) and type `Python: Select Intepreter` to update the Python interpreter. Select `+ Enter interpeter path...` and paste the path to the `arcgispro-py3` python executable. For me that was located at ``` C:/Users/Erik_Anderson/AppData/Local/Programs/ArcGIS/Pro/bin/Python/envs/arcgispro-py3/python.exe ``` To use in a Python script, open or create a `.py` file. You should see in the status bar at the bottom of the window an indication that the interpreter is the `arcgispro-py3` environment. To use in a Jupyter Notebook, open or create a `.ipynb` file. Open the command palette (`Ctrl + Shift + P`) and type `Notebook: Select notebook kernel` and select the `arcgispro-py3` environment. For ArcMap, see [[how to use arcpy in a virtual environment (deprecated)]]. > [!Tip]+ Additional Resources > - [ArcPro guide to running standalone scripts](https://pro.arcgis.com/en/pro-app/latest/arcpy/get-started/using-conda-with-arcgis-pro.htm).