Work with Python packages

One of the advantages of using the Python Package Manager is the availability and ease of installing many third-party Python packages in your current environment. You can use Python Package Manager to install and manage any additional third-party dependencies to ensure that the package can be immediately used. Once the package is installed, you can use it in the Python window and in any of your script tools or Python toolboxes.

To update, install, or remove packages, a new environment must be created.

View installed packages

To see the currently installed packages, click the Installed Packages button. All third-party Python packages installed with ArcGIS Pro and any libraries you added are listed.

Update outdated packages

Over time, Python packages may become out of date. If there are updates you want to include, click the Update Packages button to see available updates. You can update a single package by clicking the package and clicking the Install button, or you can install all updates by clicking the Update All button. Some packages are pinned to a specific version and cannot be updated; these packages do not appear in the list even when updates are available. Since the default arcgispro-py3 environment is read-only, its packages cannot be updated. Create or clone an environment to update packages.

Install available packages

Click the Add Packages button to see the available Python packages that are compatible with your Python environment. By default, the latest version of each package is shown, but you can also access earlier versions by clicking the version number in the Version column. 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.

Remove installed packages

You can uninstall any packages you add, but packages required by ArcGIS Pro are pinned and cannot be altered or removed. To uninstall a package, click the Uninstall button for the package. Since the default environment is read-only, its packages cannot be removed. Create or clone an environment to remove packages.

Temas relacionados