错误信息
raspberry@raspberrypi:~ $ pip install flask
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.
If you wish to install a non-Debian-packaged Python package,
create a virtual environment using python3 -m venv path/to/venv.
Then use path/to/venv/bin/python and path/to/venv/bin/pip. Make
sure you have python3-full installed.
For more information visit http://rptl.io/venv
note: If you believe this is a mistake, please contact your Python installation or OS distribution provider. You can override this, at the risk of breaking your Python installation or OS, by passing --break-system-packages.
hint: See PEP 668 for the detailed specification.
树莓派安装虚拟环境,树莓派flask报错
因为在某些系统中,Python环境是由操作系统管理的。为了避免破坏系统的Python环境,建议使用虚拟环境来安装Python包。

最低0.47元/天 解锁文章
1254

被折叠的 条评论
为什么被折叠?



