解决问题:The directory '/Users/Parthenon/Library/Logs/pi' or its parent directory is not owned by the

来源:互联网 发布:js默认隐藏div 编辑:程序博客网 时间:2024/05/21 17:12

在python中使用sudo pip安装软件的过程中,有时候会遇到下边的问题:

The directory '/Users/Parthenon/Library/Logs/pi' or its parent directory is not owned by the current user and the debug log has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want the -H flag.

解决方法很简单,把原来的安装命令换成下边的即可:

sudo -H pip install FileName


阅读全文
0 0
原创粉丝点击