本文介绍了如何在python 3.6的Windows 10上安装cvxopt的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

How do I install cvxopt on windows 10 on python 3.6?

运行时

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.

我很抱歉我在Windows上...

I apologize i am on windows...

有什么想法吗?

推荐答案

经过反复试验,我发现我们需要同时安装numpy + mkl软件包和相应的cvxopt:

After much trial and error, I found that we need to install both the numpy+mkl package and the appropriate cvxopt from:

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

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

Download the file, then do the following:

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

1) in a command line go to the downloads folder

2)pip安装"numpy-1.13.1 + mkl-cp36-cp36m-win_amd64.whl"

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

3)pip安装"cvxopt-1.1.9-cp36-cp36m-win_amd64.whl"

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

这篇关于如何在python 3.6的Windows 10上安装cvxopt的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

06-09 10:53