pip安装错误:error: externally-managed-environment
pip安装出错:
error: externally-managed-environment × This environment is externally managed ╰─> To install Python packages system-wide, try apt install python3-xyz, where xyz is the package you are trying to install.
参考: https://stackoverflow.com/questions/75608323/how-do-i-solve-error-externally-managed-environment-every-time-i-use-pip-3
https://veronneau.org/python-311-pip-and-breaking-system-packages.html
添加环境变量:exportPIP_BREAK_SYSTEM_PACKAGES=1 即可。