bivouacfan

a problem in importing arcpy

Discussion created by bivouacfan on Oct 21, 2011
Latest reply on Oct 26, 2011 by ekdahl
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.

Outcomes