jbmohler / matplotlib-winbuild

The Unlicense
42 stars 31 forks source link

Not working for VS2015 #4

Open couderA opened 8 years ago

couderA commented 8 years ago

I'm using visual studio 2015, and tried to install mathplotlib, but the install failed because matplotlib-winbuild is only for VS-2008 or VS-2010 .

rsaavy commented 6 years ago

I had the same issue.

Remboooo commented 6 years ago

This is not a bug. Python itself is built using VS 2008 (<3.3) and VS 2010 (>=3.3), and any libraries for it should be built using the same compiler.

davidhcefx commented 4 years ago

Python 3.5+ is indeed built using VS 2015. https://packaging.python.org/guides/packaging-binary-extensions/#binary-extensions-for-windows

Python 2.7 used Visual Studio 2008, Python 3.3 and 3.4 used Visual Studio 2010, and Python 3.5+ uses Visual Studio 2015 or later.

Fortunately, someone already patched it, so please refer to that code! https://github.com/jbmohler/matplotlib-winbuild/pull/5/commits/b78cafd2e6f49b19c306e8327ec4a6999873b236