9

如何在 python 3.6 上的 Windows 10 上安装 cvxopt?

跑步时

conda install cvxopt

Fetching package metadata ...........
Solving package specifications: .

UnsatisfiableError: The following specifications were found to be in conflict:
  - cvxopt -> python 3.5*
  - python 3.6*
Use "conda info <package>" to see the dependencies for each package.

对不起,我在窗户上...

有任何想法吗?

4

2 回答 2

18

经过多次试验和错误,我发现我们需要安装 numpy+mkl 包和适当的 cvxopt:

http://www.lfd.uci.edu/~gohlke/pythonlibs/

下载文件,然后执行以下操作:

1)在命令行中转到下载文件夹

2)点安装“numpy-1.13.1+mkl-cp36-cp36m-win_amd64.whl”

3)点安装“cvxopt-1.1.9-cp36-cp36m-win_amd64.whl”

于 2017-09-04T17:55:47.990 回答
0

该库可以使用直接安装pip

(qiskit) C:\Python37>pip install --upgrade --force-reinstall cvxopt

它下载下面的轮子

cvxopt-1.2.5-cp37-cp37m-win_amd64.whl (822 kB)
mkl-2019.0-py2.py3-none-win_amd64.whl (224.1 MB)

Successfully installed cvxopt-1.2.5 intel-openmp-2019.0 mkl-2019.0

您可能还必须在环境变量中设置 Python 路径才能使其正常工作!

于 2020-07-26T17:48:09.887 回答