Select to view content in your preferred language

Cannot create working deep learning Env in arcpro 3.0.1

1818
7
09-02-2022 09:51 AM
Moustafa4
Emerging Contributor

Last night, I was trying to learn about conda and environments and I did the introductory tutorial. The biggest issue was really running the Python Command Prompt as an administrator. So, I created a new environment from the Command Prompt using conda install --name and it appears to work just fine. However, when I try to activate it in ArcGIS Pro, it says it is Broken environment cannot be used.

Capture.PNG

I followed this steps but I still have this error" Broken environment cannot be used
is this steps Right to install new env and download Deep learning Library?

1-I installed New OS windows
2- download arcgis pro 3.0.0
3- update it to 3.0.1
4- open CMD as administrator
5- conda create --name geoai python 3.9.12
6- conda activate geoai
7- conda install -c esri arcgis
8-conda install -c esri deep-learning-essentials
9-conda install -c esri arcgis_learn python=3.9.12

Tags (1)
0 Kudos
7 Replies
DanPatterson
MVP Esteemed Contributor
0 Kudos
Moustafa4
Emerging Contributor

I tried it ,but It doesn't Work  

0 Kudos
DanPatterson
MVP Esteemed Contributor

what do you mean... it didn't work?

What were your error messages?

Did you delete your previous attempts to create and environment for the deep learning packages?

Where was it installed?  Did you use the correct framework?  Do you have other instances of python installed?  Do you have other conda environments?

The framework instructions do work, but if you found an instance where it doesn't, file an "issue" at

Esri/deep-learning-frameworks

where you can provide more details and they can troubleshoot whether it is a package problem or an installation problem


... sort of retired...
0 Kudos
Moustafa4
Emerging Contributor

I used this Command to create new env 

 conda create --name geoai python 3.9.12
 conda activate geoai
 conda install -c esri arcgis
conda install -c esri deep-learning-essentials
conda install -c esri arcgis_learn python=3.9.12

2- No, I didn't delete it, it's still there

 3-I install it here Users\M.Mahmoud\conda3\env

0 Kudos
DannyMcVey
Esri Alum

It looks like you're not installing correctly. You're creating a new environment from scratch when you should actually be cloning the arcgispro-py3 env that comes with Pro. Here is how you can get a deep-learning-essentials conda environment you can use with Pro:

from: deep-learning-frameworks/README.md at master · Esri/deep-learning-frameworks (github.com)

 

You can install the deep learning libraries from a command prompt using these steps:

1. Open the `Python Command Prompt` window
2. Clone the default Python environment with this command: (don't forget the `--pinned`)
    > `conda create -n your-clone-name --clone arcgispro-py3 --pinned
3. When the Python environment has been cloned, activate the cloned environment:
    > `activate your-clone-name`
4. Install the deep learning essentials libraries into your cloned environment with:
    > `conda install deep-learning-essentials`
5. Install arcgis_learn into your clone next with:

    > `conda install arcgis_learn`

Alternatively we recommend installing the Deep Learning Libraries Installer for ArcGIS Pro 3.0 (available here: https://github.com/Esri/deep-learning-frameworks/) which will install a verified set of working deep-learning-essentials packages directly into your arcgispro-py3 environment. Following this install your steps to get arcgis_learn installed would be:

1. Open the `Python Command Prompt` window
2. Clone the default Python environment with this command: (don't forget the `--pinned`)
    > `conda create -n your-clone-name --clone arcgispro-py3 --pinned
3. When the Python environment has been cloned, activate the cloned environment:
    > `activate your-clone-name`
5. Install arcgis_learn into your clone next with:

    > `conda install arcgis_learn`

0 Kudos
Moustafa4
Emerging Contributor

I tried to do this but is doesn't work

each video I have seen on YouTube  use command in main post and it word correctly 

I don't Know what is wrong

0 Kudos
WilliamHarbert
Regular Contributor

Hello, I am having a similar problem.  This worked fine until we updated to ArcGIS Pro 3.  This is what happens from the command line (there are several hundred additional errors):

 

(arcgispro-py3) c:\temp\harb>conda create -n deeplearning --clone arcgispro-py3 --pinned
Source: C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3
Destination: C:\Users\HARBERT\AppData\Local\ESRI\conda\envs\deeplearning
Packages: 207
Files: 424
Copying pinned file from C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\conda-meta\pinned to C:\Users\HARBERT\AppData\Local\ESRI\conda\envs\deeplearning\conda-meta\pinned
Preparing transaction: done
Verifying transaction: failed

CondaVerificationError: The package for nlohmann_json located at C:\Users\HARBERT\AppData\Local\ESRI\conda\pkgs\nlohmann_json-3.7.0-2
appears to be corrupted. The path 'Library/nlohmann_json.natvis'
specified in the package manifest cannot be found.

CondaVerificationError: The package for openssl located at C:\Users\HARBERT\AppData\Local\ESRI\conda\pkgs\openssl-3.0.3-2
appears to be corrupted. The path 'Library/ct_log_list.cnf'
specified in the package manifest cannot be found.

CondaVerificationError: The package for openssl located at C:\Users\HARBERT\AppData\Local\ESRI\conda\pkgs\openssl-3.0.3-2
appears to be corrupted. The path 'Library/openssl.cnf'
specified in the package manifest cannot be found.

CondaVerificationError: The package for vs2015_runtime located at C:\Users\HARBERT\AppData\Local\ESRI\conda\pkgs\vs2015_runtime-14.27.29016-h5e58377_2
appears to be corrupted. The path 'api-ms-win-core-console-l1-1-0.dll'
specified in the package manifest cannot be found.

CondaVerificationError: The package for vs2015_runtime located at C:\Users\HARBERT\AppData\Local\ESRI\conda\pkgs\vs2015_runtime-14.27.29016-h5e58377_2
appears to be corrupted. The path 'api-ms-win-core-datetime-l1-1-0.dll'
specified in the package manifest cannot be found.

CondaVerificationError: The package for vs2015_runtime located at C:\Users\HARBERT\AppData\Local\ESRI\conda\pkgs\vs2015_runtime-14.27.29016-h5e58377_2
appears to be corrupted. The path 'api-ms-win-core-debug-l1-1-0.dll'
specified in the package manifest cannot be found.

CondaVerificationError: The package for vs2015_runtime located at C:\Users\HARBERT\AppData\Local\ESRI\conda\pkgs\vs2015_runtime-14.27.29016-h5e58377_2
appears to be corrupted. The path 'api-ms-win-core-errorhandling-l1-1-0.dll'
specified in the package manifest cannot be found.

Hundreds of errors below this....................................................................................

-------------------------------------------------------------------------------------------------------------------------------------

Any idea what went wrong?  ArcGIS pro works fine but we cannot clone the environment, which stops all use of DL.


Thank you for your help,
Bill

 

 

0 Kudos