What is conda?
Learn resources:
But you would most likely want to clone the ArcGIS Pro's Python environment so you can experiment without messing up the default one
conda create --name propy_clone --clone arcgispro-py3
It is useful to export your environment to a environment.yml
file and include it in your repository. This allows replicating the project in a different computer by you or someone else.
conda env export --name your_env_name --file your_env_name.yml
This creates the .yml
file with version number and source repo for all your packages. Thus, this file is specific for a particular OS and Python build version.
To create an agnostic file, use
conda env export --name your-env-name | cut -f 1 -d '=' > your-env-name.yml
This strips out the version numbers, enabling you to upgrade to newer versions of the packages.
To create a new environment from this file, run
conda env create -f your_env_file.yml