For cloned ArcGIS Pro environments, the ArcGIS API for Python 2.4.0 release is supported only with 3.4 and later. The 2.4.0 arcgis and arcgis-mapping packages are not supported in any cloned ArcGIS Pro 3.3 and earlier environments.
The latest release supported in ArcGIS Pro 3.3.x for installation into cloned environments is 2.3.x. Please refer to the API 2.3.x instructions for 3.3.x installs.
Python has a rich collection of packages that can be used in ArcGIS Pro. To simplify the use of Python packages, ArcGIS Pro includes a package management system called conda. Conda takes the guesswork and hassle out of installing and updating packages and their dependencies.
To further extend the versatility and utility of Python packages, multiple installations of Python can coexist on a single workstation, independent of one another. Each of these installations is referred to as a Python environment. Each Python environment can have its own set of packages, allowing you to switch between sets of Python functionality without uninstalling and reinstalling packages each time.
By default, ArcGIS Pro has a single conda environment, arcgispro-py3, which includes all Python libraries used by ArcGIS Pro as well as several others, such as scipy and pandas.
Installation using Python Package ManagerStarting from version 2.5, ArcGIS Pro releases ship with conda and the arcgis
package pre-installed. The functionality of conda is integrated into ArcGIS Pro through the Python Package Manager
. The Python Package Manager removes many of the hurdles faced when writing Python code. It supports installing open-source and third-party libraries that are associated with an individual project, rather than the base Python installation. This simplifies the process of successfully sharing complex Python tools across multiple computers.
ArcGIS Pro 2.5 and later provide the Python Package Manager GUI to download and install any conda package. Access it through the ArcGIS Pro backstage area:
You can now review the Installed packages, as well as use the Updates and Add Packages options to modify this cloned environment to meet your needs.
NOTE: You cannot use the Python Package Manager to upgrade the arcgis package. Proceeed to the Upgrade Package section for instructions on upgrading the arcgis package.
Installation using Python Command PromptArcGIS Pro provides the Python Command Prompt to download and install any conda package.
Navigate to Start Menu > All Programs > ArcGIS > Python Command Prompt
TipBy default, the Python Command Prompt opens in the ArcGIS Pro default arcgispro-py3
environment directory, usually C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\
, with the default conda environment active.
In order to add more packages, you need to create a clone of the default arcgispro-py3 environment. Follow the steps to create environment. You can change the default environment to the cloned environment using the command: proswap <new enviroment name>
. Alternatively, to work with the activated environment, use conda utility to activate other environments.
conda install -c esri arcgis arcgis-mapping
The arcgis and arcgis-mapping packages are supported with ArcGIS Pro 3.4 and later cloned environments. Please refer to the Python 2.3.x instructions for upgrading packages in ArcGIS Pro 3.3.x installations.
NOTE: The default arcgispro-py3 environment cannot be modified. Clone the default environment in order to create environments where packages can be updated. The Python Package Manager cannot be used to update the arcgis
package. Use the Python Command Prompt as described below.
Upgrade arcgis package using Python Command Prompt:
Navigate to Start > ArcGIS > Python Command Prompt
Activate the environment containing the arcgis package to upgrade. Enter the following at the prompt for an environment named arcggispro-py3-clone:
activate arcgispro-py3-clone
Upgrade the arcgis package to the current release by installing from the esri channel with no release number. Enter the following at the prompt:
conda install -c esri arcgis arcgis-mapping
Install a specific release of arcgis
using a release number: conda install -c esri arcgis=<release_number> arcgis-mapping
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4