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.
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