Select to view content in your preferred language

Installing conda prerequisites error

13457
32
09-12-2019 09:57 AM
MeshaSagram
New Contributor

Hello,

I am exploring the deep learning functions in ArcGIS Pro and have started following this tutorial: arcgis-python-api/detecting_swimming_pools_using_satellite_image_and_deep_learning.ipynb at master ·... 

To get started with the arcgis.learn module in python, I need to install the prerequisites. The website says:

Data preparation, augmentation and model training workflows using arcgis.learn have a dependency on PyTorch and fast.ai deep learning libraries. They can be installed using conda as follows:

conda install -c fastai -c pytorch fastai=1.0.39 pytorch=1.0.0 torchvision

But when I enter that into my python window in Arc, I get a syntax error. I tried installing Anaconda and Git, and I entered this into the Anaconda Prompt and it seemed to install everything. But when I continue with the tutorial, I still get the message that it needs to be installed:

data = prepare_data(data_path, batch_size=32)
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Users\Mesha\AppData\Local\ESRI\conda\envs\arcgispro-py3-clone\lib\site-packages\arcgis\learn\_data.py", line 132, in prepare_data
_raise_fastai_import_error()
File "C:\Users\Mesha\AppData\Local\ESRI\conda\envs\arcgispro-py3-clone\lib\site-packages\arcgis\learn\_data.py", line 22, in _raise_fastai_import_error
raise Exception('This module requires fastai, PyTorch and torchvision as its dependencies. Install it using "conda install -c pytorch -c fastai fastai=1.0.39 pytorch=1.0.0 torchvision"')
Exception: This module requires fastai, PyTorch and torchvision as its dependencies. Install it using "conda install -c pytorch -c fastai fastai=1.0.39 pytorch=1.0.0 torchvision"

Is there anyone who can tell me what I need to change so that this works? I can't seem to find any resources online that address this. Thank you!

0 Kudos
32 Replies
AndreasJohansson2
New Contributor

So Im running into issues with this stuff. I did get them installed but with a error in the cloning process which said it could not find some stuff but would move on which seems kind of strange when creating a clone. Then when I try and train the model in arcpro i get an error with fastprogress. . 

I have all my data and screen shot erros and my data and workflow all in this googledrive. I have an open ticket with Esri support. Would love if someone would take a look. I will say the one thing that has helped was degrading from python 38 to 36. When i was on 38 I would get a very fast error when trying to train the model. once i went to 36 it ran for awhile but still came up with some errors. any help appreciated. 

DEEP_LEARNING - Google Drive 

0 Kudos
JoeBorgione
MVP Emeritus

Take a look at https://community.esri.com/people/danretired/blog/2020/08/13/conda-the-dependency-trail .  It may help shed some light.  My guess is you've just updated to 2.6?  Cloning is a little goofy this time around as others (myself included) have found out.

Trying to clone Python environment in ArcGIS Pro 2.6 

Another Pro 2.6 Clone problem 

That should just about do it....
0 Kudos
by Anonymous User
Not applicable

Are you still facing the issue or it is solved now ?

0 Kudos