fatal error: python.h: No such file or directory & AttributeError: 'FreeTypeFont' object has no attribute 'getsize'
dilora011 opened this issue · comments
_fatal error: python.h: No such file or directory
AttributeError: 'FreeTypeFont' object has no attribute 'getsize'
fatal error: python.h: No such file or directory
1 | #include <python.h>
solution
one should add the path in Ubuntu. Open python_headers.h and replace
#include <Python.h>
----------------with------------
#include <python3.11/Python.h> #or whatever python version path you are using
AttributeError: 'FreeTypeFont' object has no attribute 'getsize'
solution
include in the requirement.txt file : Pillow==9.5.0
pip install Pillow==9.5.0 #or just install it through pip
fatal error: python.h: No such file or directory 1 | #include <python.h>
solution
one should add the path in Ubuntu. Open python_headers.h and replace #include <Python.h> ----------------with------------ #include <python3.11/Python.h> #or whatever python version path you are using
AttributeError: 'FreeTypeFont' object has no attribute 'getsize'
solution
include in the requirement.txt file : Pillow==9.5.0
pip install Pillow==9.5.0 #or just install it through pip
python=3.9.16
Pillow==9.5.0
it works