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

添加环境变量:export PIP_BREAK_SYSTEM_PACKAGES=1 即可。
posted @ 2024-07-13 17:04  saaspeter  阅读(182)  评论(0编辑  收藏  举报