Quantcast
Channel: Forums - Python
Viewing all articles
Browse latest Browse all 2485

import arcpy not working in PythonWin

$
0
0
Hello,

I'm trying to learn to Python but am stumbling at the first block.

When I try to import arcpy I get the following error message:

Code:

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

I'm sure I've imported and installed everything as I should. Any ideas?

I've also tried running it in the Python window in ArcGIS. I get the following error message. I was trying to alter some code before christmas so I'm not sure if I've accidently deleted something.

Code:

Runtime error
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "c:\program files (x86)\arcgis\desktop10.2\arcpy\arcpy\__init__.py", line 24, in <module>
    from arcpy.toolbox import *
  File "c:\program files (x86)\arcgis\desktop10.2\arcpy\arcpy\toolbox.py", line 351, in <module>
    from management import Graph, GraphTemplate
  File "c:\program files (x86)\arcgis\desktop10.2\arcpy\arcpy\management.py", line 22, in <module>
    import _management
  File "c:\program files (x86)\arcgis\desktop10.2\arcpy\arcpy\_management.py", line 14, in <module>
    import _graph
  File "c:\program files (x86)\arcgis\desktop10.2\arcpy\arcpy\_graph.py", line 27, in <module>
    import numpy
ImportError: No module named numpy


Viewing all articles
Browse latest Browse all 2485

Trending Articles