在 ubuntu 上安装 python3 模块老是提示‘......you may want sudo's -H flag.....’不知道是否成功安装?以及后续如何调整?避免这样的提示
wilson@linux:~$ sudo pip3 install send2trash The directory '/home/wilson/.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. The directory '/home/wilson/.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.
1
zgx030030 2017-12-07 16:13:44 +08:00
提示让你用 sudo 来执行啊老哥。。。
|
2
swx934 OP 我加了的啊
|
4
swx934 OP 问已经解决了,安装 pip3 需要授权管理权限,待 pip3 安装完成后,通过其安装第三方模块旧不需要授权管理权限,直接安装旧可以了。
|
6
swx934 OP 不要加-H,直接 sudo
|
7
rob001 2017-12-07 22:37:12 +08:00
权限不足
|