问题:
('__attribute__((deprecated))', '#define TIFF_GCC_DEPRECATED __attribute__((deprecated))\n')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/***/anaconda3/lib/python3.9/site-packages/libtiff/__init__.py", line 20, in <module>
from .libtiff_ctypes import libtiff, TIFF, TIFF3D
File "/home/***/anaconda3/lib/python3.9/site-packages/libtiff/libtiff_ctypes.py", line 113, in <module>
value = eval(value)
File "<string>", line 1, in <module>
NameError: name '__attribute__' is not defined
解决方案:
pip install pylibtiff