我正在使用 ipython,并将 maya Python API 包从我的 maya 安装目录复制到 site-packages 文件夹,但是当我尝试导入 maya.api.OpenMaya 时,我得到了这样的回溯:
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
那么如何在 ipython 而不是 Maya 导入 API?