3

I need to install the package cvxopt, but one error occurs:

c:\users\user\appdata\local\temp\pycharm-packaging1.tmp\cvxopt\src\c\cvxopt.h(31) : fatal error C1083: Cannot open include file: 'complex.h': No such file or directory error: command C:\Users\User\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\cl.exe' failed with exit status 2

+

You are using pip version 7.0.1, however version 8.1.1 is available. You should consider upgrading via the 'pip install --upgrade pip' command.

Then I write it in cmd and obtain

Requirement already up-to-date: pip in c:\users\user\appdata\local\enthought\canopy\user\lib\site-packages

and it doesn't help because the error is still the same

p.s using win 8.1

Jotwege
  • 93
  • 7

1 Answers1

0

Try this way, Download package from here

extract it, navigate inside folder. you will find setup.py file

Now open terminal and type python setup.py install

Vinod
  • 1,965
  • 1
  • 9
  • 18
  • where should I put the downloaded package? – Jotwege May 09 '16 at 21:56
  • after download, extract the content and open the folder. if you want you can move or else let the extracted folder be there only. you will find setup.py file inside the folder. open terminal from that location and type `python setup.py install` it will install package – Vinod May 10 '16 at 07:42
  • it doesn't solve the problem; (can't find 'complex.h' file) – Jotwege May 10 '16 at 09:03
  • d:\install\python\cvxopt-1.1.8\src\c\cvxopt.h(31) : fatal error C1083: Cannot open include file: 'complex.h': No such file or directory error: command 'C:\\Users\\User\\AppData\\Local\\Programs\\Common\\Microsoft\\Visual C++ for Python\\9.0\\VC\\Bin\\amd64\\cl.exe' failed with exit status 2 – Jotwege May 10 '16 at 10:23