Is This Content Helpful?
How can we make this better? Please provide as much detail as possible.
Contact our Support Team
When attempting to import ArcPy into ArcGIS Pro, the import statement returns the following error message:
Error: ImportError: DLL load failed: %1 is not a valid Win32 application.
The ArcGIS Pro 64-bit Python interpreter is attempting to import a 32-bit module, as the Environment Variable 'PYTHON' or 'PYTHONPATH' is referencing a folder containing the ArcMap 32-bit ArcPy module.
import sys for path in sys.path: print (path)
Note: The script loops through each path the Python interpreter references for modules. If the generated lists include the ArcMap 32-bit ArcPy module, move to Step 2.
Last Published: 2/18/2020
Article ID: 000019997