当前位置: 首页 > 工具软件 > libtiff > 使用案例 >

import libtiff报错

詹正浩
2023-12-01

问题:

('__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
 类似资料: