Python 如何卸载AI平台JupyterLab笔记本中的软件包?
我想从AI平台笔记本中卸载软件包Python 如何卸载AI平台JupyterLab笔记本中的软件包?,python,pip,jupyter-lab,gcp-ai-platform-notebook,Python,Pip,Jupyter Lab,Gcp Ai Platform Notebook,我想从AI平台笔记本中卸载软件包 !pip3 uninstall statsmodels 但是,我收到了此响应,无法回复是/否 found existing installation: statsmodels 0.11.1 Uninstalling statsmodels-0.11.1: Would remove: /home/jupyter/.local/lib/python3.5/site-packages/statsmodels-0.11.1.dist-info/*
!pip3 uninstall statsmodels
但是,我收到了此响应,无法回复是/否
found existing installation: statsmodels 0.11.1
Uninstalling statsmodels-0.11.1:
Would remove:
/home/jupyter/.local/lib/python3.5/site-packages/statsmodels-0.11.1.dist-info/*
/home/jupyter/.local/lib/python3.5/site-packages/statsmodels/*
Proceed (y/n)?
我可以试着在终端上做,但我注意到我在终端上做的和在笔记本上做的不一样。就像我运行pip freeze一样,我从笔记本电脑和终端安装了一组不同的软件包,就像在命令行上一样,您可以提前输入答案:
!echo y | pip3 uninstall statsmodels
就像在命令行上一样,您可以提前输入答案:
!echo y | pip3 uninstall statsmodels
!pip3卸载statsmodels-我认为笔记本和终端之间的行为差异是由于python的不同版本造成的。如果从终端运行命令
pip…
,它将使用默认版本(Python 2)。如果使用Python3内核从笔记本运行该命令,它将使用该版本的Python。您可以从终端使用pip3…
。我明白了,谢谢matteo!pip3卸载statsmodels-我认为笔记本和终端之间的行为差异是由于python的不同版本造成的。如果从终端运行命令pip…
,它将使用默认版本(Python 2)。如果使用Python3内核从笔记本运行该命令,它将使用该版本的Python。您可以从终端使用pip3…
。我明白了,谢谢matteo