Hi, I am trying to install deep learning frameworks on my ArcGis Pro 2.5 and I get this message when I try to execute the first step to conduct the installation:
conda create --name deeplearning --clone arcgispro-py3
it basically says "conda" is not recognized as an internal or external command, program or executable batch file.
I don't understand what is going on. Please help!
C:\...Your_install_path...\bin\Python\envs\arcgispro-py3 # base install
# your clone???
# C:\...Your_clone_path...\and name....
But you need to 'activate' your clone properly (ie through conda, or arcgis Pro) before you try anything.
'conda' is not recognized as an internal or external command, operable program or batch file.
Note: you may need to restart the kernel to use updated packages.
I have done all steps recommended in this post. Unistalled and installed both ArcPro and Anaconda several times.
I have followed the steps described here until the step: activate my_arcgispro_clone
and then installed all the deep learning packages as specified here:
But when I get to the last step ( proswap deeplearning ) I get this response:
Have I done something wrong?
Many thanks for your help.
I am not sure from your post whether you 'cloned' the default environment first "THEN" did the install of pytorch into that environment.
If you didn't clone the default environment first, you wouldn't have anything in it of use except for the deeplearning modules.
A quick view using Windows file explorer into that path will reveal what you have....
alternately, you can do a
for both the deeplearning and the arcgispro-py3 environments (proswap -ing in between)
I don't really understand why, but when I do clone it gets added in this path
I have found the error:
the clone is created in the destination folder specified above. ¿How can I correct that?
thanks for your invaluable help. I tried it and got this error:
Spaces in paths can sometimes be problematic.
An unexpected error has occurred.
Please consider posting the following information to the
conda GitHub issue tracker at:
Current conda install:
platform : win-64
conda version : 4.3.27
conda is private : False
conda-env version : 4.3.27
conda-build version : 3.18.9
python version : 3.6.8.final.0
requests version : 2.22.0
root environment : C:\Program Files\ArcGIS\Pro\bin\Python (read only)
default environment : C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3
envs directories : C:\Users\besca\AppData\Local\ESRI\conda\envs
package cache : C:\Users\besca\AppData\Local\ESRI\conda\pkgs
channel URLs : https://conda.anaconda.org/esri/win-64
config file : C:\Program Files\ArcGIS\Pro\bin\Python\.condarc
netrc file : None
offline mode : False
user-agent : conda/4.3.27 requests/2.22.0 CPython/3.6.8 Windows/10 Windows/10.0.18362
administrator : False
`$ C:\Program Files\ArcGIS\Pro\bin\Python\Scripts\conda.exe create --clone C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3 -p C:\Program Files\ArcGIS\Pro\bin\Python\envs\clone1 --no-shortcuts --pinned`
Traceback (most recent call last):
File "conda\exceptions.py", line 641, in conda_exception_handler
File "conda\cli\main.py", line 144, in _main
File "conda\cli\main_create.py", line 73, in execute
File "conda\cli\install.py", line 221, in install
File "conda\cli\install.py", line 74, in clone
File "conda\misc.py", line 303, in clone_env
File "os.py", line 210, in makedirs
File "os.py", line 210, in makedirs
File "os.py", line 220, in makedirs
PermissionError: [WinError 5] Acceso denegado: 'C:\\Program Files\\ArcGIS\\Pro\\bin\\Python\\envs\\clone1'
Marta, I think you need to contact Tech Support.
You will notice in my blog that I don't let Pro install where it wants by default, I created a separate folder in a spaceless path (ie c:\arc_pro).
I have full administrative rights on the machine, so clearing everything out related to esri products and reinstalling again the way I want to isn't an issue. This may not be your case, so having someone from Tech Support walk through it on you machine might be the quickest solution.
Last question: do you think it would be possible to take my ArcGisPro folder and copy it somewhere else in c:\ (ie c:\arc_pro)?
I have full administrative rights on my machine.