ipython notebook can import a pyd module but the p

2019-05-30 16:15发布

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.

标签: python pyd
1条回答
ら.Afraid
2楼-- · 2019-05-30 17:16

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

查看更多
登录 后发表回答