Select to view content in your preferred language

Trouble cloning an environment in Python on ArcGIS Pro

1342
1
02-14-2022 06:45 PM
Labels (3)
EvelynMartinez
New Contributor

I am working with ArcGIS Pro 2.9 and encountered an issue when using the Python features. I am attempting to clone the main environment "arcgispro-py3" and every time I think it will work it freezes, then proceeds to fail. The error message says "error installing *insert package name here*. It does not happen with only one specific package, it has happened with different ones each time. Is there a reason I cannot clone this environment? I am also following the ESRI guide here but have had no success. This is for my GIS programming class, so a detailed explanation or links will help a lot.

Thank you in advance.

0 Kudos
1 Reply
DanPatterson
MVP Esteemed Contributor

remove any environments that you have attempted to create as described in the document

use Windows file explorer and locate these two folders

C:\.. ArcGISPro install folder..\bin\Python\envs

  • there should be   C:\.. ArcGIS Pro install folder..\bin\Python\envs\arcgispro-py3  unless there are some clones there, which need to be removed

C:\Users\.. You ..\AppData\Local\ESRI\conda\envs   

  • clones here need to be removed.

Is this where you have been installing your software and clones? 

If not, do so and report.

If you tried multiple locations, you may have stray environments listed and the package manager won't help and you will have to go the "conda" route

I create a desktop short cut to

Target:   C:\arc_pro\bin\Python\Scripts\proenv.bat

Start in:  C:\arc_pro\bin\Python\envs\arcgispro-py3

so I can run it easily.  (note, I install Pro in my own folder (arc_pro) rather than Programs..blah...blah

 

cheat sheet conda-cheatsheet.pdf

or get back with details

conda_env.png

 


... sort of retired...