Allow removing packages from a conda environment

06-18-2021 04:40 PM
Status: Open
Labels (1)
Occasional Contributor II

There is no "remove" option in ArcGIS Pro for packages. You can only add them. If there is a package in the default, there is no way to resolve conflicts. 

(arcgispro-py3) C:\arc_pro\bin\Python\envs\arcgispro-py3>conda remove arcgis --force --dry-run

## Package Plan ##

  environment location: C:\..your install folder..\bin\Python\envs\arcgispro-py3

  removed specs:
    - arcgis

The following packages will be REMOVED:


DryRunExit: Dry run. Exiting.

Now see what happens when you remove --force  (keep --dry-run though 😉 )


Yes Dan, there is in fact a command line for Conda but this suggestion was that Esri might consider adding as a "remove package" feature to AGP.  I am not convinced it's a good idea because I personally like the idea of apps being much more focused. They tried the "separate apps" approach with ArcMap + ArcCat but it did not work out for them apparently.  

How does a product manager know when to stop? Clearly this functionality is missing, but if they keep adding more it will make AGP unwieldy.

I've looked at Anaconda Navigator and feel they have gone way too far with it so I've never recommended it. It's like they are trying to replace the desktop.

This morning I am thinking what I've always suggested is best. DON'T use the AGP conda interface. Don't use Anaconda Navigator. Use conda at the command line. The only thing AGP needs is the ability to set the environment for the current project. And of course, you should be able to change environments without restarting AGP. 

Having added too many features to an app it is extremely difficult to remove any. Then people (like me) ask for more.

I think this just ramified into 5 different ideas, all before coffee. Oops.