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

时间:2017-09-02 02:27:27

标签: anaconda jupyter python-3.6 conda cvxopt

如何在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.

我道歉,我在窗户上......

有什么想法吗?

2 个答案:

答案 0 :(得分:14)

经过多次反复试验,我发现我们需要安装numpy + mkl包以及相应的cvxopt:

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

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

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

2)pip install“numpy-1.13.1 + mkl-cp36-cp36m-win_amd64.whl”

3)pip install“cvxopt-1.1.9-cp36-cp36m-win_amd64.whl”

答案 1 :(得分: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路径才能使其正常工作!