Problems installing brian2 with Windows

Description of problem

Hi,
I am writing because I am trying to install Brian2 with Windows but when running the test I get several errors. The Python version is Python 3.12.

Please, find attached screenshots of the error messages.


Thanks!
Sara

Hi @SIbanez. Your test suite is failing to compile code with Cython. At the end of the error message you can see:

Microsoft Visual C++ 14.0 or greater is required. Get it with “Microsoft C++ Build Tools”: Microsoft C++ Build Tools - Visual Studio

We also explain this in a bit more detail here: Installation — Brian 2 2.5.4 documentation

Note that it is perfectly fine to use Brian without the Code generation (to avoid getting any warnings in that case, set prefs.codegen.target = 'numpy') – in particular if you are developing/testing code and not running simulations where every bit of performance counts.