"Permission denied: '/usr/local/man/man1/nosetests.1'"解决方法

来源:互联网 发布:通用电气矩阵 编辑:程序博客网 时间:2024/06/07 00:35

在用pip install安装python的一些包的时候遇到了这样一个错误:

with open(dst, 'wb') as fdst:IOError: [Errno 13] Permission denied: '/usr/local/man/man1/nosetests.1'

我是安装nose的时候遇到的,可能是之前的一些设置出了点问题,解决方法很简单,但是不知道有没有什么副作用:

sudo chmod 777 /usr/local/man/man1

还有就是如果直接sudo pip install的话虽然可以避免这个错误发生,但是安装完之后好像无法正常运行这个包,所以直接改目录权限是可行的。

0 0
原创粉丝点击