背景描述: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
解决办法:
原命令:pip install -r requirements.txt
在原命令后空格黏贴这段话--root-user-action=ignore requests
参考资料