简体   繁体   中英

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

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.

获取Dependency Walker ,在.pyd上运行它,弄清楚它需要哪个DLL,并将该DLL放在其所属的位置。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM