I upgraded ArcGIS Pro to 2.2.2 and the conda environment seemed messed up (I couldn't activate an environment), so I uninstalled, removed the folder C:\Program Files\ArcGIS\Pro, and installed a fresh copy of ArcGIS Pro (version 2.2.2). Now I can't even list environments! From the Python command line run as administrator, "conda list" returns:
Traceback (most recent call last):
File "conda\cli\main.py", line 190, in <module>
File "conda\proconfig.py", line 115, in pre_hook
File "conda\proconfig.py", line 76, in proreg
File "conda\proconfig.py", line 44, in hive
File "pathlib.py", line 1139, in resolve
File "pathlib.py", line 193, in resolve
PermissionError: [WinError 5] Access is denied: 'C:\\Program Files\\ArcGIS\\Pro\
\bin\\Python\\Scripts'
[4000] Failed to execute script main
In fact, any conda command returns the access error. This is running on Windows Server 2012R2. Any suggestions for troubleshooting? Permissions in the Scripts folder seem fine (users have read & execute permission, administrators have full permission).