使用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 ......

The directory '*' or its parent directory is not owned by the current user相关推荐

  1. mac brew 安装php扩展报错:parent directory is world writable but not sticky

    $ brew install php70-mcrypt 报错: Error: parent directory is world writable but not sticky 搜索到github的答 ...

  2. Can‘t find a suitable configuration file in this directory or any parent. 报错解决错误

    docker-compose 执行的时候报错         Can't find a suitable configuration file in this directory or any par ...

  3. Parent directory of crack_capcha.model doesn't exist, can't save. (tensorflow 报错)

    Parent directory of crack_capcha.model doesn't exist, can't save. (tensorflow 报错) 在保存模型的时候报的错, 使用代码: ...

  4. shell获取目录的上级目录_Shell:如何获取文件指定的父目录的名称?(Shell: How to a file's specified parent directory's name?)...

    Shell:如何获取文件指定的父目录的名称?(Shell: How to a file's specified parent directory's name?) 我是Shell编程的初学者. 我目前 ...

  5. WARNING: The directory ‘/home/zhex/.cache/pip/http‘ or its parent directory is not owned by the curr

    WARNING: The directory '/home/zhex/.cache/pip/http' or its parent directory is not owned by the curr ...

  6. Active Directory系列之五:Active Directory的主要还原

    Active Directory的授权还原 在上篇博文中我们介绍了如何在域中部署额外域控制器,额外域控制器有很多好处,例如可以平衡用户对AD的访问压力,有利于避免唯一的域控制器损坏所导致域的崩溃.从上 ...

  7. 使用 ADSync 集成 IBM Lotus Domino Directory 和 Microsoft Active Directory

    具有多个目录平台的企业 IT 环境非常常见,而 IBM Lotus Domino Directory 和 Microsoft Active Directory 就是这种情况下的流行选择.本文阐述了一种 ...

  8. WARNING: The directory ‘/home/xt/.cache/pip‘ or its parent directory is not owned or is not writable

    因为ros默认使用python2,而mqtt_bridge包使用的是python3编写的,所以此处可能会出现报错,因为需要用python3进行安装. 首先在主目录中打开显示隐藏文件选项(Crtl+H) ...

  9. svn: Failed to add directory '../target': an unversioned directory of the same name already exis

    用mvn clean命令之后,再更新svn,然后就好了,原因是svn更新时与target文件夹中文件冲突.

最新文章

  1. java写exe程序实例,java实现可安装的exe程序实例详解
  2. 突然挂了!Redis缓存都在内存中,这下完了!
  3. ubuntu 无法进入startx_Ubuntu无法进入图形化界面(报错/dev/sda1:clean的解决)
  4. phpmyadmin教程:使用phpmyadmin创建用户
  5. MySQL数据库的数据类型decimal详解
  6. robolectric android studio,Android Studio + Robolectric + AndroidAnnotations 根本框架
  7. mysql pdo 查询一条数据,使用 PDO 关联查询 MySQL 数据
  8. 华为麒麟1020处理器曝光:性能提升50%,5nm制程!Mate 40有望成为首发机型
  9. UVa 1399 Puzzle
  10. 通达信股票数据接口协议文档
  11. [经验分享] 收费版文字转语音,免费使用
  12. python实验原理_python实验报告5
  13. 网络:简述计算机网络的性能指标和非性能特征
  14. web3.js查询方法的调用方式汇总
  15. ONOS架构中的YANG、P4 Runtime
  16. 【整理】linux学习笔记整理8
  17. 技术书写作你要知道的几件事
  18. Allegro如何添加泪滴操作指导
  19. 企业研发人员配备比例_如何理解高新技术企业认定对研发人员比例的要求
  20. 海尔微型台式计算机重装系统,海尔台式电脑怎么进行U盘一键重装win10系统

热门文章

  1. centos 安装 图像识别工具 tesseract-ocr 流程
  2. Python第四章__装饰器、迭代器
  3. 创建二维数组(一维长度3,二维长度6),值为一维数组和二维数组索引值的积
  4. 昨天登陆页面,无法进入后台,今天攻克了
  5. IPC 和 RPC (呵呵,我感觉我应该要钻研到这个深度啦)
  6. 解读Android LOG机制的实现
  7. Android UI开发第二篇——多级列表(ExpandableListView)
  8. C语言程序练习-L1-003 个位数统计 (15分)
  9. mysql 远程用户授权_mysql创建远程用户并授权
  10. 魅族用鸿蒙系统吗,魅族宣布接入鸿蒙是怎么回事?魅族手机可以刷鸿蒙系统吗?...