Linux安装问题(更新中)

WARNING: The directory ‘/home/cherry/.cache/pip’ or its parent directory is not owned or is not writable by the current user. The cache has been disabled. Check the permissions and owner of that directory. If executing pip with sudo, you may want sudo’s -H flag.

-H 将环境变数中的 HOME (家目录)指定为要变更身份的使用者家目录(如不加 -u 参数就是系统管理者 root )

pip目录的权限和所有者不属于当前用户,更改用户。
pip目录的属主不是sudo的root用户。如果必须用sudo pip,更改pip目录属主即可:
sudo chown root /home/cherry/.cache/pip

你可能感兴趣的:(Linux,warning,linux)