【问题标题】:Undo disabling pip cache撤消禁用 pip 缓存
【发布时间】:2017-08-18 05:23:36
【问题描述】:

我不小心用--no-cache-dir 选项运行了pip。现在,当我尝试部署无服务器项目时遇到以下错误消息。

The directory '/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag. The directory '/.cache/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag. Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-Uc5FLI/unroll/

有没有办法重新启用 pip 缓存?

【问题讨论】:

    标签: python caching lambda pip serverless-framework


    【解决方案1】:

    你已经运行sudo -H pip install; sudo 以 root 身份运行 pippip 更改了主目录下某些文件和目录的所有权。取回文件:

    sudo chown -R $USER $HOME
    

    【讨论】:

      猜你喜欢
      • 2013-07-31
      • 2010-10-21
      • 1970-01-01
      • 1970-01-01
      • 2011-03-29
      • 2020-04-19
      • 2013-05-19
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多