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

在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


你可能感兴趣的:(Python,Ubuntu系统相关)