pip install出错externally-managed-environmen

自从电脑升级成ubuntu 23.04后各种小问题不断。

IPython 8.5.0 – An enhanced Interactive Python.pip install pyvistaerror: externally-managed-environment× This environment is externally managed╰─> To install Python packages system-wide, try apt installpython3-xyz, where xyz is the package you are trying toinstall.

可以用如下方式继续安装:
pip install package_name --break-system-packages

你可能感兴趣的:(pip,python,linux)