如果在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点的博客