Library/Caches/pip' or its parent directory is not owned by the current user

使用mac开发安装包出现如下问题:
The directory '/Users/xxx/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.
The directory '/Users/picasso/Library/Caches/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.
解决方法:
(基于用户的权限来安装模块包):

sudo pip install django-celery --user -U
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容

  • Tensorflow安装手册 tony:~ xdwang$ sudo easy_install pip Pass...
    sennchi阅读 1,594评论 0 1
  • rljs by sennchi Timeline of History Part One The Cognitiv...
    sennchi阅读 7,419评论 0 10
  • 为什么这部电影叫《分贝人生》呢?一开始还以为搞音乐的,后来才反应过来,上分下贝不就是贫这个字吗!这部电影就是描写一...
    承谦阅读 444评论 0 0
  • 2017,1,9~两天没有看到大瓶子,当接到大瓶子的电话,这个高兴劲,那个谁,你怎么老是抿嘴笑……
    萝莉同学阅读 296评论 0 0
  • 其实微商,一切得靠自己主动 在做微商的时候,最重要的问题就是销量。而想增加销量,要充分把控出用户的心理, 同时掌握...
    荻花令阅读 456评论 0 2