Select to view content in your preferred language

Problem importing arcpy

412
2
11-29-2011 01:51 PM
PhilDonnelly
Emerging Contributor
Hello everybody.
I have had Python 2.6 installed and I have been able to create and run non-GIS related Python scripts over the past few days as I attempt to learn the basics of the language.
I have now installed ArcGIS10 and as Python 2.6 was already there ArcGIS didn't try/need to install it.
Python code runs fine in the ArcGIS Python Window including "import arcpy"
However neither neither Pythonwin nor Idle will accept "import arcpy"
The error returned is:
ImportError: No module named arcpy
I thought I could run GIS scripts outside of ArcGIS but maybe this isn't possible or is it just a path setting?
Thanks in advance for any suggestions
Cheers
Phil.
Tags (2)
0 Kudos
2 Replies
MathewCoyle
Honored Contributor
This thread will probably help you out, missing path references most likely.
http://forums.arcgis.com/threads/23230-quot-ImportError-No-module-named-arcpy-quot-PYTHON
0 Kudos
PhilDonnelly
Emerging Contributor
This thread will probably help you out, missing path references most likely.
http://forums.arcgis.com/threads/23230-quot-ImportError-No-module-named-arcpy-quot-PYTHON


Hi Mathew.
Yes I now have access to arcpy from both IDLE and Pythonwin.
Thanks very much for pointing me in the right direction.
Phil.
0 Kudos