... | @@ -32,18 +32,25 @@ i.e. the path to where this repository was downloaded (in step 1) |
... | @@ -32,18 +32,25 @@ i.e. the path to where this repository was downloaded (in step 1) |
|
|
|
|
|
## 2. Create ArcGIS Conda environment:
|
|
## 2. Create ArcGIS Conda environment:
|
|
Open `Start > ArcGIS > Python Command Prompt`:
|
|
Open `Start > ArcGIS > Python Command Prompt`:
|
|
|
|
|
|
[[resources/how-to-setup_python-command-prompt.png]]
|
|
[[resources/how-to-setup_python-command-prompt.png]]
|
|
Go to the path to where this repository was downloaded (in step 1), i.e. type:
|
|
|
|
|
|
In the command prompt, type (where `C:\path-to-vpi-codes\` must be changed to the path to the vpi source code as of step 1):
|
|
```bash
|
|
```bash
|
|
cd C:\path-to-vpi-codes\
|
|
cd C:\path-to-vpi-codes\
|
|
```
|
|
|
|
Then type:
|
|
|
|
```bash
|
|
|
|
conda create --clone arcgispro-py3 --name vpi
|
|
conda create --clone arcgispro-py3 --name vpi
|
|
conda env update --name vpi --file conda\environment_arcgis.yml
|
|
conda env update --name vpi --file conda\environment_arcgis.yml
|
|
```
|
|
```
|
|
|
|
|
|
Open ArcGIS Pro, go to `Project > Python > Manage Environments` and activate the environment called `vpi`. Restart ArcGIS Pro.
|
|
Open ArcGIS Pro, go to `Project > Python > Manage Environments`
|
|
|
|
|
|
|
|
[[resources/how-to-setup_python-package-manager.png]]
|
|
|
|
|
|
|
|
Activate the environment called `vpi`:
|
|
|
|
|
|
|
|
[[resources/how-to-setup_manage_environments.png]]
|
|
|
|
|
|
|
|
Restart ArcGIS Pro.
|
|
|
|
|
|
## 3. Add the toolbox to your project
|
|
## 3. Add the toolbox to your project
|
|
After restarting ArcGIS Pro, go to the catalog pane, left-click `Toolboxes`, click `Add Toolbox` and select the file:
|
|
After restarting ArcGIS Pro, go to the catalog pane, left-click `Toolboxes`, click `Add Toolbox` and select the file:
|
... | | ... | |