I just installed QGIS (2.18) using the OSGeo4W-installer (64-bit). When I use the python-console in QGIS it is possible to run the 'import numpy' statement and to use numpy.
When I open python in the command-window of windows or when I create a stand-alone script it is impossible to import numpy. It gives this:
ImportError: No module named _ctypes
This is strange because it is the same installation of python and ctypes is installed during the installation of QGIS. Any ideas how to get numpy working in standalone scripts?
Some additional information: I used the default installation of the OSGeo4W installer and my pythonpath is set to:
and python is added to the path-variable: