I'm trying to create a configuration/ add-in for a department and because Pro invalidates the cloned python environments after updates, I need a way to ensure that a cloned environment is created and the required python packages (one being our in-house package) are installed. Since some packages do not install through the Pro's conda manager, I need to install through pip. I cannot ask each user to execute pip commands after each update of Pro. Nor do I really want to touch each computer after each update.
I haven't been able to find any examples of accessing the cloned environments, or if the python/ conda environment is exposed to the ArcGIS Pro SDK. A similar question without an answer was asked here. I created a script that checks for the packages I need to install and installs them if they are not, but it needs the cloned environment first.
Simply, I need to do this:
User starts Pro after an update or fresh install.
Be able to:
1. Check if the python env is cloned and clone it if isn't.
1.a. If it exists, check if python packages are installed and install if they are not.
2. Set active python environment to the clone that contains added packages.
3. Run python scripts from the addin buttons.
If this is not possible to do programmatically through the SDK, I'd welcome any options. Thanks!