zoukankan      html  css  js  c++  java
  • The directory '*' or its parent directory is not owned by the current user

    使用sudo pip install …的时候出现下面一段warning:

    WARNING: The directory '/home/alex/.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.
    WARNING: The directory '/home/alex/.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.
    

    翻译一下就是:
    当前用户不拥有目录“ /home/stone/.cache/pip/http”或其父目录,并且缓存已被禁用。 请检查该目录的权限和所有者。 如果使用sudo执行pip,则可能需要sudo的-H标志。 目录’/home/stone/.cache/pip’或它的父目录不属于当前用户,并且缓存轮已被禁用。 检查该目录的权限和所有者。 如果使用sudo执行pip,则可能需要sudo的-H标志。

    解决方案: 在sudo 后面添加-H

    sudo -H pip install ......
    
  • 相关阅读:
    运算符
    数据类型
    试题汇总
    文件读写
    Python操作
    字符串常用函数 void
    向量叉乘求任意多边形面积,凹凸均可 void
    约瑟夫问题各种求解办法 void
    大数类相关计算(c语言版) void
    求解一元多次方程(迭代法) void
  • 原文地址:https://www.cnblogs.com/AlexKing007/p/12338033.html
Copyright © 2011-2022 走看看