【问题标题】:i am getting this error when I try to download pip install tweepy through my terminal当我尝试通过终端下载 pip install tweepy 时出现此错误
【发布时间】:2017-04-10 13:08:23
【问题描述】:
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

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

Command "/usr/bin/python -u -c "import setuptools, tokenize;file='/private/var/folders/zq/k3pbc5v57gn07qqg7qxxnrmm0000gn/T/pip-build-R8mYNT/ tweepy/setup.py';f=getattr(tokenize, 'open', open)(file);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-externally-managed --compile" 失败,错误代码 1 在 /private/var/folders/zq/k3pbc5v57gn07qqg7qxxnrmm0000gn/T/pip-build-R8mYNT/tweepy/

【问题讨论】:

  • 以 sudo 运行它?

标签: python pip installation tweepy


【解决方案1】:

Python 安装在您的“/home/username/”目录之外。您需要使用 root 权限授予您访问该目录的权限。

$ sudo pip install tweety 
  • 如上使用 sudo 只会应用它后面的命令。

【讨论】:

    猜你喜欢
    • 2018-12-31
    • 1970-01-01
    • 2023-02-04
    • 2022-06-14
    • 2013-09-12
    • 2020-09-01
    • 2011-07-12
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多