如何在Anaconda中卸载pip ipykernel而不卸载ipykernel?

时间:2017-05-06 02:34:17

标签: python pip jupyter-notebook jupyter

我不小心做了

pip install --upgrade ipykernel

但我后来发现我应该

conda update ipykernel

现在我有两个jupyter_core,setuptools,请求等。如何卸载我通过pip安装的冗余软件包。我试过了

pip uninstall ipykernel

得到了

DEPRECATION: Uninstalling a distutils installed project (ipykernel) has been deprecated and will be removed in a future version. 
This is due to the fact that uninstalling a distutils project will only partially uninstall the project.
Uninstalling ipykernel-4.6.1:
  /Users/jan/anaconda/lib/python2.7/site-packages/ipykernel-4.6.1-py2.7.egg-info
Proceed (y/n)? n

如果在Anaconda中没有卸载ipykernel,我该如何撤消install pip ipykernel?pip uninstall ipykernel

1 个答案:

答案 0 :(得分:0)

没有答案,我试过

pip uninstall ipykernel

并发现它只删除了pip安装版本1。所以我卸载了它和手动安装ipykernel的软件包。根本不需要重新安装。无论如何,我不得不一个一个地命令,因为我找不到如何在一行命令中卸载许多包(但不是全部)。

来自install pip ipykernel的软件包,包括ipykernel,tornado,ipython,certifi,traitlets,jupyter_core,setuptools,prompt_toolkit,Pygments和pyparsing。