如果出现“Running pip as the ‘root’”请尝试这种办法

Python/Go 林涛 105℃ 0评论

如果在Centos版的云服务器上,用pip安装包的时候出现“WARNING: Running pip as the ‘root’ user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv” 这样的话,请尝试一下这种方式解决:

命令行依次执行:

1 export PIP_ROOT_USER_ACTION=ignore

2 pip install –root-user-action=ignore requests

3 pip install –upgrade pip

4 pip install xxxxx

如需转载请注明: 转载自26点的博客

本文链接地址: 如果出现“Running pip as the ‘root’”请尝试这种办法

转载请注明:26点的博客 » 如果出现“Running pip as the ‘root’”请尝试这种办法

喜欢 (0)or分享 (0)
0 0 投票数
文章评分
订阅评论
提醒
guest

这个站点使用 Akismet 来减少垃圾评论。了解你的评论数据如何被处理

0 评论
内联反馈
查看所有评论
0
希望看到您的想法,请您发表评论x