Help me please arcpy will not initiallize

618
3
09-17-2013 11:53 AM
EdwardTanas
New Contributor
Using Python Idle

typed in

import arcpy

get error below

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


using

Python 2.7.3 (default, Apr 10 2012, 23:24:47) [MSC v.1500 64 bit (AMD64)] on win32

using Arcis 10.1

thank you
Tags (2)
0 Kudos
3 Replies
T__WayneWhitley
Frequent Contributor
See the bottom of this page concerning 'paths and import':

Importing ArcPy
Desktop » Geoprocessing » Python
http://resources.arcgis.com/en/help/main/10.1/index.html#//002z00000008000000


Enjoy,
Wayne
0 Kudos
StacyRendall1
Occasional Contributor III
I would guess you are not using the Python installed by ArcGIS. It is possible (but I think unlikely) that somehow the *.pth file got lost or messed up, but if it did Waynes solution will help.

You could end up using the wrong Python if you already had it installed, or installed another Python after ArcGIS.

The IDLE associated with ArcGIS Python is found here:
Start Menu ... > ArcGIS > Python ... > IDLE (Python GUI)

You can check the paths available to Python in IDLE with:
File > Path Browser
0 Kudos
EdwardTanas
New Contributor
I would guess you are not using the Python installed by ArcGIS. It is possible (but I think unlikely) that somehow the *.pth file got lost or messed up, but if it did Waynes solution will help.

You could end up using the wrong Python if you already had it installed, or installed another Python after ArcGIS.

The IDLE associated with ArcGIS Python is found here:
Start Menu ... > ArcGIS > Python ... > IDLE (Python GUI)

You can check the paths available to Python in IDLE with:
File > Path Browser



____________________________________________________________________

thank you so very much....to Stacy Rendall

That was the exact issue....
0 Kudos