How to install cvxopt on on windows 10 on python 3.6
Asked Answered
A

2

9

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

When running

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.

I apologize i am on windows...

Any ideas?

Acuff answered 2/9, 2017 at 2:27 Comment(0)
A
18

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) in a command line go to the downloads folder

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"

Acuff answered 4/9, 2017 at 17:55 Comment(1)
On step 3) pip install "pip install "cvxopt-1.1.9-cp36-cp36m-win_amd64.whl" change to: pip install "cvxopt-1.1.9-cp36-cp36m-win_amd64.whl"Douche
B
0

The library can be installed directly using pip

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

It downloads the below wheels

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

You may have to set the Python path as well in the environment variable to get it working!

Bergerac answered 26/7, 2020 at 17:48 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.