>>> from libtiff import * Generating '/usr/local/lib/python2.7/dist-packages/libtiff/tiff_h_4_0_6.py' Traceback (most recent call last): File "<stdin>",line 1,in <module> File "/usr/local/lib/python2.7/dist-packages/libtiff/__init__.py",line 20,in <module> from .libtiff_ctypes import libtiff,TIFF,TIFF3D File "/usr/local/lib/python2.7/dist-packages/libtiff/libtiff_ctypes.py",line 102,in <module> f = open(fn,'w') IOError: [Errno 13] Permission denied: '/usr/local/lib/python2.7/dist-packages/libtiff/tiff_h_4_0_6.py'
权限问题,进入root模式,修改权限
chmod 777 /usr/local/lib/python2.7/dist-packages/libtiff/tiff_h_4_0_6.py
参考 博客:http://blog.csdn.net/georgechen_ena/article/details/8289313 原文链接:https://www.f2er.com/ubuntu/352234.html