仅做个人学习记录使用:

1.pip安装出现 root 权限问题

WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager, possibly rendering your system unusable. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv. Use the --root-user-action option if you know what you are doing and want to suppress this warning.

解决方案:通过 pip install XXXX --upgrade pip --root-user-action=ignore 强制忽略警告安装,自用环境推荐,生产环境还是使用非root用户安全。

持续更新中ing...