XingangPan / DragGAN

Official Code for DragGAN (SIGGRAPH 2023)
https://vcai.mpi-inf.mpg.de/projects/DragGAN/
Other
35.65k stars 3.44k forks source link

fatal error: python.h: No such file or directory & AttributeError: 'FreeTypeFont' object has no attribute 'getsize' #395

Open dilora011 opened 1 year ago

dilora011 commented 1 year ago

_fatal error: python.h: No such file or directory

AttributeError: 'FreeTypeFont' object has no attribute 'getsize'

dilora011 commented 1 year ago

fatal error: python.h: No such file or directory 1 | #include

solution

one should add the path in Ubuntu. Open python_headers.h and replace

include

----------------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

manuelding commented 4 months ago

fatal error: python.h: No such file or directory 1 | #include

solution

one should add the path in Ubuntu. Open python_headers.h and replace #include ----------------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