I have a Anaconda with Python 3.6, and I installed the ArcGIS with the command
conda install -c esri arcgis
but when I went to test it presented the error:
No module named 'arcpy'.
I saw the tutorials and I didn't find the file Desktop10.3.pth
in the path site-packages had a file called Desktop10.3.pth
. I didn't find in anywhere.
Best Answer
In ESRI's
arcpy
documentation "What is ArcPy" they make it sound like any other python package, but it is different than a other packages:arcpy
is closed source and only available within ESRI.arcpy
is not installed in Python, it's added to the python path if you have ESRI installed.The package appears to be an interface to a local installation of ESRI, not a python package that uses python.
My conjecture is based on several readings. The clearest hints were from the blog of @Qiusheng-Wu. From this section about using Anaconda it seems clear that you're accessing python that's inside ESRI's program files:
It's confusing because you can install the packages
esri
andarcgis
without the ESRI software (i.e. they're normal packages), but the same is not true ofarcpy
.It's also confusing because the ESRI documentation makes it sound like this is a general purpose package without dependencies.
@Luke's answer in the comments is correct, but I wanted to provide a bit more documentation and actual answer for future searchers.