0

I have installed Microsoft Visual Studio 2017 online with python enabled. under Python Environments > Packages I search for cvxpy and it suggest installing "pip install cvxpy" from PyPI. but when I click on it, process returns an error saying: error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\BIN\\x86_amd64\\cl.exe' failed with exit status 2.

What is that error for and how Can I solve it?

sascha
  • 32,238
  • 6
  • 68
  • 110
MJay
  • 987
  • 1
  • 13
  • 36
  • Read the official docs. It's not recommended to use pip on windows for this (= installing cvxpy). – sascha Jan 08 '18 at 12:17
  • @sascha what is the substitute? I just select package and visual studio selects the way to install package by itself – MJay Jan 08 '18 at 12:30
  • 1
    If you are not experienced with building software from sources you should follow any anaconda-based path, as explained in the docs. If that's a working combination together with visual studio, you will have to check. To be honest: the (non-)details you gave indicate that you are not that experienced. The error you posted contains almost no information. That's the one printed whenever something goes wrong during building (and there are tons of potential reasons; here: probably some problem during build of cvxcanon, ECOS, or SCS if scipy already available; if not you are in big trouble). – sascha Jan 08 '18 at 12:36

0 Answers0