【发布时间】: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