Why is my ArcGIS Pro Python environment unable to be cloned?
To be brief, I am unable to activate cloned copies of the default ArcGIS Pro python environment, receiving an error message that required packages are missing. I am trying to create a new ArcGIS Pro python environment.
How to install a Python package in ArcGIS Pro?
Launch ArcGIS Pro and open a project. Click Project > Python. Click Manage Environments. Click Clone. Check the clone environment as Active. Restart ArcGIS Pro. Install the Python package. Note : There is a known limitation of cloning environments from the Python Package Manager in ArcGIS Pro 2.2. This issue is resolved in ArcGIS Pro 2.3.
Why is the Install button disabled in ArcGIS Pro?
When installing a Python package in the ArcGIS Pro Python Package Manager, the Install button is disabled. Starting with ArcGIS Pro 2.2., the default arcgispro-py3 environment is set to read-only, so no new package can be installed to the default environment.
How do you install a package in Python?
To install a Python package, click the package name in the Name column, change the version if necessary, and click the Install button. Since the default environment is read-only, it cannot be updated with new packages. Create or clone an environment to install packages.
How to clone an environment in Python using Conda?
Clone the environment by entering the following command: conda create –clone –name Note : For this example, the command is: conda create –clone arcgispro-py3 –name arcgispro-py3_clone Alternatively, to clone the environment to a specific directory path, enter the command as:
Can you use ArcPy in a cloning environment?
This however, does not work perfectly when recreating environments dependent on the functionality of ArcPy. There is, however, a pretty straightforward workaround you can use to still take advantage of the functionality offered by cloning environments, and still have access to ArcPy in this new environment.
What kind of environment does ArcGIS Pro use?
ArcGIS Pro, when initially released, included an incredibly powerful capability, the included Python environment is a Conda environment. This unlocks the extremely powerful and vast universe of installable packages available through Conda.