I'm using ipython, and I copied maya Python API packages from my maya installation directory to the site-packages folder, but when I am trying to import maya.api.OpenMaya, I get a traceback like that:
ImportError Traceback (most recent call last)
<ipython-input-1-0c6acdfd4e92> in <module>()
----> 1 import maya.api.OpenMaya as om
E:\Python\Lib\site-packages\maya\api\OpenMaya.py in <module>()
23 # our module, which is called 'OpenMaya'.
24 #
---> 25 import maya.api._OpenMaya_py2
26
27 ourdict = globals()
ImportError: DLL load failed: The specified module could not be found
So how can I import the API at ipython instead of at Maya ?