I have been trying to use qiskit SVM and it needs the optional package qiskit[cvx]. While installing the package as

pip install qiskit-aqua[cvx] 

I am encountering the following errors

>  running build_ext   building '_cvxcore' extension   error: Microsoft
> Visual C++ 14.0 or greater is required. Get it with "Microsoft C++
> Build Tools":
> https://visualstudio.microsoft.com/visual-cpp-build-tools/  
> ----------------------------------------   ERROR: Failed building wheel for cvxpy   Building wheel for ecos (setup.py) ... error  
> ERROR: Command errored out with exit status 1:    command:
> 'E:\DevelopmentEnvironments\Anaconda3\envs\qiskit_env\python.exe' -u
> -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\AMITAVA\\AppData\\Local\\Temp\\pip-install-mon8de59\\ecos_5ec689fff8044fcebbc759d1411788bb\\setup.py'"'"';
> __file__='"'"'C:\\Users\\AMITAVA\\AppData\\Local\\Temp\\pip-install-mon8de59\\ecos_5ec689fff8044fcebbc759d1411788bb\\setup.py'"'"';f=getattr(tokenize,
> '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"',
> '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))'
> bdist_wheel -d
> 'C:\Users\AMITAVA\AppData\Local\Temp\pip-wheel-gknwgiii'
>        cwd: C:\Users\AMITAVA\AppData\Local\Temp\pip-install-mon8de59\ecos_5ec689fff8044fcebbc759d1411788bb\

I have wheels in my environment already as specified in here. I have also installed the latest Ms Visual Studio Tools.

Python configuration is Anaconda, python version is 3.8.3

  • 1
    This seems to be less a problem with Qiskit rather than with cvx and your C++ version. Maybe try looking explicitly for the MS Visual C++ error, such as here github.com/benfred/implicit/issues/76 or here (see also the comments): docs.microsoft.com/en-us/answers/questions/136595/… – Cryoris Dec 11 '20 at 8:52
  • yes, acc to the link I hv installed the build tools, rebooted - still the same. – Amitava Chakraborty Dec 11 '20 at 10:08
  • 4
    I’m voting to close this question because it should be on stackoverflow – glS Dec 15 '20 at 9:05

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy