a problem in importing arcpy

442
3
10-21-2011 08:50 PM
TetsuoKobayashi
New Contributor
I am new in ArcGIS programming with Python. I just installed ArcGIS 10. I have Python 2.6 installed but when I type as follow, I get an error.

Traceback (most recent call last):
  File "<pyshell#2>", line 1, in <module>
    import arcpy
ImportError: No module named arcpy

I looked at some other threads and found out it has something to do with setting a path or something which I am not familiar with. I also found out it has something to do with the file called "Desktop10.pth." I searched the file on my computer and found out that the file exist inside C:\Python26\ArcGIS10.0\Lib.

I have no idea what is missing here to be able to import arcpy. It would be great if I can learn from anybody who knows about how to import arcpy.

Thank you.
Tags (2)
0 Kudos
3 Replies
LawrenceEkdahl
New Contributor
Hi,
I was wondering if you found a solution?  I am having the same problem with both a networked workstation and a laptop with a student version of ArcGIS 10 installed.  When i enter the "import Arcpy" command, I get an invalid syntax error.
Help?
Thanks,
Wayne
0 Kudos
JeffBarrette
Esri Regular Contributor
0 Kudos
LawrenceEkdahl
New Contributor
Thanks, I will check that out.
Wayne
0 Kudos