Problem with cython in windows 10 (C++14.0)

Description of problem

Hi everyone!
My program needs long hours to run, so I’m trying to use “C++ code generation” mode.
But I’ve received this error when strat runing:

WARNING Cannot use Cython, a test compilation failed: command ‘C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\x86_amd64\cl.exe’ failed with exit code 2 (CompileError) [brian2.codegen.runtime.cython_rt.cython_rt.failed_compile_test]
INFO Cannot use compiled code, falling back to the numpy code generation target. Note that this will likely be slower than using compiled code. Set the code generation to numpy manually to avoid this message:
prefs.codegen.target = “numpy” [brian2.devices.device.codegen_fallback]

How Can I fix it?
Thanks ever so much in advance.

My problem has just solved with installing the version of visual studio built tools 2017

1 Like