ipython notebook can import a pyd module but the python interpreter can't

[亡魂溺海] 提交于 2019-12-08 04:13:00

问题


I downloaded the cvxopt package and tried to run some of the examples from the documentation here

http://cvxopt.org/examples/index.html

Everything runs fine when I execute the code from ipython notebook.

However, when I try to run the interpreter I get the following :

import cvxopt:

File "C:\Python27\lib\site-packages\cvxopt__init__.py", line 32, in import cvxopt.base ImportError: DLL load failed: The specified module could not be found.

The command import cvxopt runs fine in ipython notebook. The module which can't be downloaded (cvxopt.base) is a .pyd file and is on the system path.

I am thoroughly confused.


回答1:


Get Dependency Walker, run it on the .pyd, figure out which DLL it needs, and put the DLL where it belongs.



来源:https://stackoverflow.com/questions/25478056/ipython-notebook-can-import-a-pyd-module-but-the-python-interpreter-cant

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!