Installation of matplotlib demanded installation of FreeType 2.3, how to install FreeType 2.3 or higher on PYCHARM?
Hello, newbie question.
I'm starting with python/pycharm/everything computer science related and I stumbled across matplotlib installation on Pycharm 2019.3.3 Community Edition.
I've tried installing matplotlib using the Project interpreter, unfortunately it shows the following error:
"src/checkdep_freetype2.c(5): fatal error C1189: #error: "FreeType version 2.3 or higher is required. You may set the MPLLOCALFREETYPE environment variable to 1 to let Matplotlib download it."
I've tried using pip install to this package here, https://pypi.org/project/freetype-py/, however it seems that it's needed a newer version, 2.3 or higher.
I've tried setting the enviroment variable MPLLOCALFREETYPE=1 by going into RUN>Edit configurations>Environmental Variables and setting
MPLLOCALFREETYPE = 1
I can go to the FreeType website, https://www.freetype.org/download.html, and trying downloading one of the files, however I do not know which one to download, and how to install it, either on Windows or in Pycharm.
If someone can point me to any kind of tutorial that help me explain how everything works, hahahaha, it would be really helpful. For example, does the installation of this package has to be specific to Python? Or to Pycharm?
Thank you in advance
Please sign in to leave a comment.
Update:
I just downgraded to python 3.7, I was using the last version, 3.8, and it worked just fine.
Got the same error, eventually upgraded pycharm and pip to latest version then matplotlib installed successfully
Update the pip of pycharm to 20 or higher version. Then it will work. But same command which is used to update pip in cmd, will not work in pycharm. So go to project interpreter of pycharm and update pip there.
N.B. Updating pip also resolves the installation issue of pandas "" [WinError 123] The filename, directory name, or volume label syntax is incorrect: '"C:' ""
I am getting exactly the same issue and do not understand why. My pip is at 20.1 and the latest version of python The error is
FreeType version 2.3 or higher is required. You may set the MPLLOCALFREETYPE environment variable to 1 to let Matplotlib download it.
I have set the environmental variable to 1 but this has not worked either. Any ideas?
Thanks Daniel Passy...saved my day..i downgraded python to 3.7 and it works fine for the same problem in detectron2