Anaconda conda env == CommandNotFound

1885
3
Jump to solution
05-18-2022 07:34 PM
GISAdmin35
New Contributor II

Hi All,

It would appear that the conda that is included with Pro does not support/offer `conda env .....`. This is used to perform so many functions in conda and does not appear to be supported by the embedded conda instance.

Steps to reproduce, in windows cmd:

`

cd "c:\Program Files\ArcGIS\Pro\bin\Python\Scripts"

conda env list

CommandNotFoundError: No command 'conda env'.

`

Can anyone please enlighten me?

Thank you.

0 Kudos
1 Solution

Accepted Solutions
Luke_Pinner
MVP Regular Contributor

Works for me in Pro 2.8.3

Try either adding 'C:\Program Files\ArcGIS\Pro\bin\Python\Scripts' to your PATH environment variable or using the full path to conda.exe

'C:\Program Files\ArcGIS\Pro\bin\Python\Scripts\conda.exe' env list
# conda environments:
#
arcgispro-py3 C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3

View solution in original post

3 Replies
Luke_Pinner
MVP Regular Contributor

Works for me in Pro 2.8.3

Try either adding 'C:\Program Files\ArcGIS\Pro\bin\Python\Scripts' to your PATH environment variable or using the full path to conda.exe

'C:\Program Files\ArcGIS\Pro\bin\Python\Scripts\conda.exe' env list
# conda environments:
#
arcgispro-py3 C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3
GISAdmin35
New Contributor II

Thanks Luke, this fixed it. I would prefer not to alter the global PATH on my machine, so will try and do it only when required. Hopefully this is only when trying to run `conda env ....` commands.

Thanks again!

0 Kudos
Luke_Pinner
MVP Regular Contributor

I've never had an issue adding the conda directory to my PATH. You don't need to change the system environment, just the user environment. 

0 Kudos