1

I am trying to clone my python environment that comes with ArcGIS Pro (arcgispro-py3 located in C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3) to a location I can access (I do not have administrative privileges). I followed these instructions from ESRI https://support.esri.com/en/technical-article/000020560 but gave a direct path name for the clone (C:\Users\me\AppData\Local\ESRI\conda\envs\arcgispro-py3_clone).

When I cloned arcgispro-py3, I did so within my Python Command prompt. The cloned environment shows up when I list out my environments in the Python Command prompt with conda env list. However, when I do so from the Anaconda prompt, the environment is not shown (only base shows). I can, however, activate it using the path to the cloned environment. (Though oddly when I run conda env list again from the cloned environment, it has no output.)

I had used this same workflow on a different computer previously and had no problems. My main question is why can I not see all of the environments with conda env list? The only thing that I can think of is that I also installed Anaconda (even though conda comes with ArcGIS Pro). I don't know if that confused anything.

3
  • Have you tried adding the path to ArcGIS\Pro\bin\Python\envs to the condarc config file? You need to add the path before creating the environment and then, when you create a new environment in that location, you should be able to activate it using only the name. Also, its name should appear along with the path when you run "conda env list". docs.conda.io/projects/conda/en/latest/user-guide/configuration/… Jul 14 at 13:31
  • Thanks for this suggestion. Unfortunately I do not have read/write access to the .condarc config file. I eventually uninstalled Pro and then reinstalled for a single user (this defaults to AppData instead of Program Files). I was able to clone from this location.
    – ENIAC-6
    Aug 10 at 17:14
  • @ENIAC-6 you have write access to .condarc. If it doesn't exist already, create it in %userprofile%\.condarc e.g. C:\Users\YOUR_USERNAME\.condarc or use the conda config command.
    – user2856
    Sep 13 at 22:42

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.