littleO
littleO

Reputation: 1002

Error installing cvxopt using Conda

I'm attempting to install cvxopt using Conda (which comes with the Anaconda python distribution), and I received the error message below. Apparently my Anaconda installation is using python 3.6, whereas cvxopt wants python 3.5*. How can I fix this and install cvxopt using Conda?

After typing conda install cvxopt at the Anaconda prompt, the message I received was:

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.

Here's a screenshot of the error message: enter image description here

Upvotes: 2

Views: 2291

Answers (2)

vinay kusuma
vinay kusuma

Reputation: 75

try

conda install cvxopt=1.1.8

its the new version and only version having support for python3.6

Upvotes: 0

davidrpugh
davidrpugh

Reputation: 4573

It would appear that cvxopt requires Python 3.5. Easiest solution would be to use conda to create a separate environment for python 3.5 and then install cvxopt (and any other desired python packages). For example...

conda create -n cvxopt-env python=3.5 cvxopt numpy scipy matplotlib jupyter

...depending on your operating system you can then activate this environment using either...

source activate cvxopt-env

...or...

activate cvxopt-env

...you can then switch back to your default python install using...

deactivate

...check out the conda docs for more details. In particular the docs for the conda create command.

Upvotes: 2

Related Questions