1

This is the first time im using python/arcpy. I keep getting an error with import arcpy command.

Can anyone help me find out why?

import arcpy

Runtime error Traceback (most recent call last): File "", line 1, in File "c:\program files (x86)\arcgis\desktop10.3\arcpy\arcpy__init__.py", line 24, in from arcpy.toolbox import * File "c:\program files (x86)\arcgis\desktop10.3\arcpy\arcpy\toolbox.py", line 359, in from .management import Graph, GraphTemplate File "c:\program files (x86)\arcgis\desktop10.3\arcpy\arcpy\management.py", line 26, in import _management File "c:\program files (x86)\arcgis\desktop10.3\arcpy\arcpy_management.py", line 14, in import _graph File "c:\program files (x86)\arcgis\desktop10.3\arcpy\arcpy_graph.py", line 27, in

import numpy

ImportError: No module named numpy

closed as off-topic by PolyGeo Feb 24 '18 at 9:03

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "This problem cannot or can no longer be reproduced. Changes to the system or to the asker's circumstances may have rendered the question obsolete, or the question does not include a procedure to enable potential answerers to reproduce the same symptoms. Such questions are off-topic as they are unlikely to help future readers, but editing them to include more details can lead to re-opening." – PolyGeo
If this question can be reworded to fit the rules in the help center, please edit the question.

  • 1
    Welcome to GIS SE! As a new user please take the tour to learn about our focused Question and Answer format. I've seen similar questions here in the past (although I haven't found them yet) and I recall them being along the lines of incorrectly installed Arcpy or incorrect Python versions installed. Check your arcpy and python installs match your ArcGIS version. – Midavalo Feb 7 '17 at 20:21
  • 2
    Have you to installed/updated numpy, scipy, pandas? These often cause ArcPy to break, because they use a different version of numpy than ArcPy does. – Tom Feb 7 '17 at 21:03
  • Which IDE do you use? ArcGIS by default uses python 2.7 version. Do you install another version? – wetland Nov 26 '17 at 8:04
0

You'll find an Python 2.7 IDLE installed with your ArcGIS:

enter image description here

Calling import arcpy using this Python version will work!

Not the answer you're looking for? Browse other questions tagged or ask your own question.