2017-04-10 30 views
-1
copying tweepy/error.py -> build/lib/tweepy 
copying tweepy/models.py -> build/lib/tweepy 
copying tweepy/oauth.py -> build/lib/tweepy 
copying tweepy/parsers.py -> build/lib/tweepy 
copying tweepy/streaming.py -> build/lib/tweepy 
copying tweepy/utils.py -> build/lib/tweepy 
running install_lib 
creating /Library/Python/2.7/site-packages/examples 
error: could not create '/Library/Python/2.7/site-packages/examples': Permission denied 

---------------------------------------- 

命令“/ usr/bin/python -u -c”导入setuptools,tokenize; 档案 ='/ private/var/folders/zq/k3pbc5v57gn07qqg7qxxnrmm0000gn/T/pip-build-R8mYNT/tweepy/setup.py'; f = getattr(tokenize,'open',open)(档案); code = f.read()。replace('\ r \ n','\ n'); f.close(); exec(compile(code,file,'exec'))“install --record/var /folders/zq/k3pbc5v57gn07qqg7qxxnrmm0000gn/T/pip-ZdPzhK-record/install-record.txt --single-version-external-managed -compile“在/ private/var/folders/zq/k3pbc5v57gn07qqg7qxxnrmm0000gn中失败,显示错误代码1/T/pip-build-R8mYNT/tweepy/当我尝试通过我的终端下载pip install tweepy时出现此错误

+1

将它作为sudo运行? –

回答

0

Python安装位于'/ home/username /'目录之外。您需要使用root权限才能授予您访问目录的权限。

$ sudo pip install tweety 
  • 使用sudo如上只会应用于它后面的指令(S)。
相关问题