In order to use additional python packages in scripts that also use arcpy, the packages must be installed in a virtual environment within the ArcGIS python installation. This document describes how to do this.
Packages can be installed manually from the command line or using the Python management tools within ArcGIS Pro. The manual procedure is described below. The ArcGIS Pro procedure can be found on the ArcGIS Pro Python reference page.
dir
activate env-name
env-name
activate arcgispro-py3
pip install package-name
package-name
If project-specific packages are being installed, it's good practice to create a new virtual environment to use instead of the default arcgispro-py3 environment. Instructions on how to do this can be found in a separate article.