-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Re-opening Definitive Docs for compilation on Windows. #7418
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Can you open a pull request with a better version of the documentation? I don't think any of the developers work on windows, and thus will not be able to help. |
@Kojoley and @JanSchulz are windows developers iirc. Have a look at what we use on appevyor which seems to build reliably. |
I can agree that build process on Windows is a pain, but there is not a lot of things that we can change.
I am not sure I understand what do you mean. If you are talking about
This is partly true. MSVC version is 'hardcoded' (it selects from 2008 and 2010) only for
I cannot say anything about this as you have not shared any info about this. And I suspect it is something wrong with your setup.
You can help improving it.
Can you explain? |
@smaudet do you have any more details you can help provide so we can make things better? |
Would anyone be able to link to the exact compiler or suite that one has to install such that the suggested steps
would be successful? There is a link somewhere in the docs pointing to https://www.visualstudio.com/downloads/ but that is rather unhelpful as any of those that I tried will produce some problem of png.lib not being found/compilable. This error suggests to use Microsoft Visual C++ 14. But how do Versions 20xx relate to version 14? |
@ImportanceOfBeingErnest Your best friend is this wiki page https://wiki.python.org/moin/WindowsCompilers. It has links for all the stuff you might need.
https://en.wikipedia.org/wiki/Microsoft_Visual_C%2B%2B#Internal_version_numbering |
Thanks. According to the linked page, one would need version 14.0 for python 3.6. This translates into Visual Studio 2015. Yet on the page it links to, there are only the Build Tools for Visual Studio 2017 available. This uses version 14.13.26128. Using it, there is the error
Complete error message
There does not seem to be a Build Tools 2015 available? Or is the problem a totally different one? |
True.
It looks like the link was not updates since 2017 release. Here it is https://www.visualstudio.com/vs/older-downloads/
This is know limitation of MSVC static libraries, they are 'incompatible' between 'major' releases. You are using Anaconda and static libraries build by them with MSVC 14.0, so you have to use the same compiler, or vc141 library versions, or build them yourself with MSVC 14.1. |
That did it. So the solution for python 3.6 (and 3.5 I suppose) is to install the |
I took the liberty to document how I managed to build matplotlib 3.1.1 with Visual C++ 2017, version 15.x. Maybe this could be useful input to someone else looking to compile matplotlib and it's dependencies on Windows. |
This is getting quite old, and the landscape has changed quite a bit, even compared to the last gist posted immediately above (none of the steps regarding freetype, zlib, and libpng are necessary anymore). I'll thus close this as outdated, and we can reopen the discussion if there are specific points that need to be better documented. |
#1717
Re-opening here.
The text was updated successfully, but these errors were encountered: