Select to view content in your preferred language

arcgis 2.4.0 map module

1279
7
Jump to solution
10-29-2024 01:59 AM
WPG03WPG03
Occasional Contributor

I have installed arcgis 2.4.0, but why is map module missing?

just running

 

from arcgis.map import Map

 

ModuleNotFoundError: No module named 'arcgis.map'

 

And checking the package in lib, no map folder is found.

What's wrong is this.

1 Solution

Accepted Solutions
PeterKnoop
MVP Regular Contributor

It is part of the arcgis-mapping package.

If you have already installed argis 2.4.0, then:

conda install -c esri arcgis-mapping

Or, if you are starting from scratch, in an empty conda environment, then:

conda install -c esri arcgis=2.4.0 arcgis-mapping

 

View solution in original post

7 Replies
DanPatterson
MVP Esteemed Contributor
from arcgis.map import Map

dir(Map)
Out[2]: 
['__add__',
 '__annotations__',
 '__class__',
 '__copy__',
 '__deepcopy__',
 '__del__',
 '__delattr__',
 '__dict__',
 '__dir__',
 '__doc

If you installed it in a cloned environment, perhaps you didn't activate that environment first


... sort of retired...
0 Kudos
jmpmcmanus
Occasional Contributor

I'm having the same problem. I installed arcgis using conda:

conda install esri::arcgis

When I attempt to import I get:

>>> from arcgis.map import Map

Traceback (most recent call last):

  File "<stdin>", line 1, in <module>

ModuleNotFoundError: No module named 'arcgis.map'

When I import arcgis and it shows that it is version 2.4.0. I am also able to import arcgis.mapping.

PeterKnoop
MVP Regular Contributor

It is part of the arcgis-mapping package.

If you have already installed argis 2.4.0, then:

conda install -c esri arcgis-mapping

Or, if you are starting from scratch, in an empty conda environment, then:

conda install -c esri arcgis=2.4.0 arcgis-mapping

 

WPG03WPG03
Occasional Contributor

Work for me too.

install also arcgis-mapping

pip install arcgis-mapping

Thanks.

ZacharyHart
Honored Contributor

Hi @PeterKnoop did you happen to see my installation issue over here? Any thoughts?

0 Kudos
PeterKnoop
MVP Regular Contributor

@ZacharyHart replied on the other thread

jmpmcmanus
Occasional Contributor

That worked in my case. Thanks Peter!

0 Kudos