The Peak Flow toolbox relies on a few FOSS Python packages. You'll need to make sure these are available to ArcGIS Pro in order for
(This summarizes these instructions for creating and activating an environment on Esri's help site.)
- Under
Project > Settings > Python
, click theManage Environments
button. A new window will open. - Click
Clone Default
. This will create a new Python environment. It make take some time. - Once the environment is created, check it. You will see a message
Restart ArcGIS Pro for your environment changes to take effect.
- Select
OK
at the bottom of the new window. - Restart ArcGIS Pro. Once restarted, open up the manage environments dialog to confirm the Python environment has changed.
Note: if the environment fails to create, you may need to run ArcGIS Pro as with administrator privileges. Right click your ArcGIS Pro icon and select
Run as Adminstrator
.
(This summarizes the instructions for installing available packages.
You'll need to install three additional Python packages in your environmentto use the tool.
- PETL
- Pint
- Click
- Under
Project > Settings > Python
, confirm your Project Environment is set to the one you created above. - Select the
Add Packages
button. - In the text box that appears to the right, search for
Click
. This will bring up a list of python packages. - Select
Click
. To the right of the list will appear a description of the package with anInstall
button. - Select
Install
, agree to terms of use, and select Install. - Repeat steps 3-5 for the other two packages,
Pint
andPETL
.
If you're developing the tool, additionally install pytest
for automated testing support
- environment fails to create: you may need to run ArcGIS Pro as with administrator privileges. Right click your ArcGIS Pro icon and select
Run as Adminstrator
.*