美文网首页
pip install 失败

pip install 失败

作者: 高巨龙 | 来源:发表于2018-04-15 10:44 被阅读139次

一、失败原因

The directory '/Users/Library/Caches/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.


二、解决办法

    直接 pip install django,不用sudo。权限的问题,对后续使用不影响。不管是用pip装什么模块,前面都尽量不要加sudo。

相关文章

网友评论

      本文标题:pip install 失败

      本文链接:https://www.haomeiwen.com/subject/rhldkftx.html