权限在httplib2安装上被拒绝 [英] Permission Denied on httplib2 install

查看:104
本文介绍了权限在httplib2安装上被拒绝的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试安装Python的httplib2库,以便可以使用它与Twitter进行交互,但是当我尝试通过"python setup.py install"进行安装时,在控制台中出现以下错误.

I'm trying to install the httplib2 library for Python so I can use it to interact with the Twitter but I get the following error in the console when I try to install via 'python setup.py install'.

这是一个新的MBA,我是唯一的用户(和管理员),所以我不应该被这么粗鲁地拒绝!

This is a new MBA and I am the only user (and Admin) so I shouldn't get denied so rudely!

error: could not create '/Library/Python/2.7/site-packages/httplib2': Permission denied

有想法吗?

推荐答案

使用 sudo 以root身份运行setup.py:

% sudo python setup.py install

这篇关于权限在httplib2安装上被拒绝的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆