No module named arcgis

1067
9
11-28-2020 07:40 AM
SevincTaghiyeva
New Contributor

Hi,

When I write this code, in the jupyter notebook gives an error. what can I do?

Thanks in advance.

Capture.PNG

0 Kudos
9 Replies
DavidPike
MVP Frequent Contributor

post 2.5 releases have this pre-installed according to the dosumentation.

I would open up your anaconda prompt and use:

conda install -c esri arcgis

All the info should be here:

ArcGIS API For Python | ArcGIS for Developers

0 Kudos
SevincTaghiyeva
New Contributor

is this solution only for arcgis pro? 

0 Kudos
SevincTaghiyeva
New Contributor

I wrote "conda install -c esri arcgis" in Anaconda Prompt. 

But I guess it didn't work.

0 Kudos
JoshuaBixby
MVP Esteemed Contributor

You guess it didn't work?  Either it installs or it doesn't, there isn't any guessing.  When you ran that command, what did the output say?

Are you running the Jupyter Notebook through the conda that is packaged/deployed with Pro, or is this a separate conda installation?

SevincTaghiyeva
New Contributor

not a separate conda installation. Output is in the picture

0 Kudos
JoshuaBixby
MVP Esteemed Contributor

The screenshot shows the opposite, i.e., the screenshot shows a separate conda installation because ArcGIS Pro does not install its conda into C:\ProgramData\Anaconda.  The directory being shown is the default location for an Anaconda distribution installed at the machine level for all users.  The error message is stating the user running the command doesn't have proper permissions to install new packages.

0 Kudos
SevincTaghiyeva
New Contributor

Capture.PNG

0 Kudos
DanPatterson
MVP Esteemed Contributor

It failed... that is why you don't have arcgis, you don't have permissions to install it.

I suggest that you only play with the arcgis module if you have a current version of arcgis pro installed and... you have created a clone into which you can install arcgis as well.  Arcgis is installed in the base environment of Arcgis Pro since at least 2.5.  Jupyter is also installed

 

Addendum

the readings

ArcGIS API for Python | ArcGIS for Developers

API Reference for the ArcGIS API for Python — arcgis 1.8.2 documentation


... sort of retired...
0 Kudos
DanPatterson
MVP Esteemed Contributor

Did you get this resolve?


... sort of retired...
0 Kudos