Windows上cvxopt导入问题

1 投票
1 回答
3379 浏览
提问于 2025-04-18 10:14

我按照这个链接的步骤,从这里直接安装了cvxopt。但是在使用Python时,遇到了以下问题:

>>> import cvxopt
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "build\bdist.win32\egg\cvxopt\__init__.py", line 32, in <module>

  File "build\bdist.win32\egg\cvxopt\base.py", line 7, in <module>
  File "build\bdist.win32\egg\cvxopt\base.py", line 6, in __bootstrap__
ImportError: DLL load failed: The specified procedure could not be found.
>>>

有没有什么办法解决这个问题呢?

1 个回答

4

cvxopt 这个库需要用到 Numpy-MKL,你可以在 这里 下载适合 Windows 的版本。

然后,从 这里 安装 cvxopt 的版本。

撰写回答