相关疑难解决方法(0)

每次使用 pip 3 时如何解决“错误:外部管理环境”?

错误信息:

\n
\n
error: externally-managed-environment\n\n\xc3\x97 This environment is externally managed\n\xe2\x95\xb0\xe2\x94\x80> To install Python packages system-wide, try apt install\n    python3-xyz, where xyz is the package you are trying to\n    install.\n\n    If you wish to install a non-Debian-packaged Python package,\n    create a virtual environment using python3 -m venv path/to/venv.\n    Then use path/to/venv/bin/python and path/to/venv/bin/pip. Make\n    sure you have python3-full installed.\n\n    If you wish to install a non-Debian packaged Python application,\n    it may be easiest to use pipx install xyz, which will manage …
Run Code Online (Sandbox Code Playgroud)

python error-handling pip

247
推荐指数
10
解决办法
40万
查看次数

pip install -rrequirements.txt 失败:“此环境由外部管理”

命令:

\n
pip install -r requirements.txt\n
Run Code Online (Sandbox Code Playgroud)\n

输出:

\n
error: externally-managed-environment\n\n\xc3\x97 This environment is externally managed\n\xe2\x95\xb0\xe2\x94\x80> To install Python packages system-wide, try apt install\npython3-xyz, where xyz is the package you are trying to\ninstall.\n\nIf you wish to install a non-Debian-packaged Python package,\ncreate a virtual environment using python3 -m venv path/to/venv.\nThen use path/to/venv/bin/python and path/to/venv/bin/pip. Make\nsure you have python3-full installed.\n\nIf you wish to install a non-Debian packaged Python application,\nit may be easiest to use pipx install xyz, which will manage a\nvirtual environment …
Run Code Online (Sandbox Code Playgroud)

python linux

74
推荐指数
3
解决办法
17万
查看次数

标签 统计

python ×2

error-handling ×1

linux ×1

pip ×1