IOError: [Errno 13] Permission denied

>>> from libtiff import *
Generating '/usr/local/lib/python2.7/dist-packages/libtiff/tiff_h_4_0_6.py'
Traceback (most recent call last):
  File "", line 1, in 
  File "/usr/local/lib/python2.7/dist-packages/libtiff/__init__.py", line 20, in 
    from .libtiff_ctypes import libtiff, TIFF, TIFF3D
  File "/usr/local/lib/python2.7/dist-packages/libtiff/libtiff_ctypes.py", line 102, in 
    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

你可能感兴趣的:(Python,电脑操作)