Python Forum

Full Version: Cannot open include file: 'ft2build.h'
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I'm trying to install matplotlib on Windows 10. I have Python 3.8.0 installed in C:\Python. I did:
py -m pip install matplotlib

Initially, I got an error "Microsoft Visual C++ 14.0 is required" which after several download and installs, I fixed by installing Visual C++ 2015 Build Tools. Now I get:
fatal error C1083: Cannot open include file: 'ft2build.h'

I installed GnuWin32 Freetype but it doesn't help. I also tried copying the freetype h files into the Python include folder but no luck. How do I resolve this error?