IOError: [Errno 13] Permission denied

前端之家收集整理的这篇文章主要介绍了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 "<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

猜你在找的Ubuntu相关文章