1

I want to import CVXOPT functionalities for use in the Canopy python editor. As far as I know, I have downloaded CVXOPT successfully. My reason for thinking this is that the CVXOPT site says "to test that the installation was successful, go to the examples directory and try one of the examples", and I am able to do this in the command line without any errors.

However, in my python code, when I say

from cvxopt import matrix, spmatrix, solvers, mul, div

I get an error saying "No module named CVXOPT". I think the problem must be simple but fiddling around for awhile hasn't fixed the problem. Any ideas?

N. Mao
  • 499
  • 1
  • 10
  • 19

1 Answers1

0

You may refer to this site for installing package not readily available in Canopy.

https://support.enthought.com/hc/en-us/articles/204469690-Installing-packages-into-Canopy-User-Python-from-the-OS-command-line

After downloading CVXOPT, be sure you are logged in to Enthought account and use Canopy terminal to install the package.