Error in importing arcpy in arcgis python console

المشرف العام

Administrator
طاقم الإدارة
I have been coding in eclipse using arcpy 64 bit. the pythonpath in eclipse is set to the 64 bit, the pythonpath in environment variables is also set to the same address. but when I want to improt arcpy in the python console in ArcGIS desktop. it return the following error:

Runtime error Traceback (most recent call last):File "", line 1, in File "c:\program files (x86)\arcgis\desktop10.2\arcpy\arcpy\__init__.py", line 24, in from arcpy.toolbox import *File "c:\program files (x86)\arcgis\desktop10.2\arcpy\arcpy\toolbox.py", line 356, in from management import Graph, GraphTemplateFile "c:\program files (x86)\arcgis\desktop10.2\arcpy\arcpy\management.py", line 22, in import _managementFile "c:\program files (x86)\arcgis\desktop10.2\arcpy\arcpy\_management.py", line 14, in import _graphFile "c:\program files (x86)\arcgis\desktop10.2\arcpy\arcpy\_graph.py", line 27, in import numpyFile "C:\Python27\ArcGISx6410.2\Lib\site-packages\numpy\__init__.py", line 168, in from . import add_newdocsFile "C:\Python27\ArcGISx6410.2\Lib\site-packages\numpy\add_newdocs.py", line 13, in from numpy.lib import add_newdocFile "C:\Python27\ArcGISx6410.2\Lib\site-packages\numpy\lib\__init__.py", line 8, in from .type_check import *File "C:\Python27\ArcGISx6410.2\Lib\site-packages\numpy\lib\type_check.py", line 11, in import numpy.core.numeric as _nxFile "C:\Python27\ArcGISx6410.2\Lib\site-packages\numpy\core\__init__.py", line 6, in from . import multiarrayImportError: DLL load failed: %1 is not a valid Win32 application.I then checked the python version using the following code:

print "Running against: {}".format(sys.version)Running against: 2.7.5 (default, May 15 2013, 22:43:36) [MSC v.1500 32 bit (Intel)]So I guess I should somehow change the version of the python in my ArcGIS, but how?the background geoprocessing is enabled, the pythonpath is set to 64 bit. what is missing?



أكثر...
 
أعلى