2017-05-06 240 views
2

我不小心做了如何卸载pip ipykernel而无需在Anaconda中卸载ipykernel?

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 

我应该怎么做撤消install pip ipykernel?pip uninstall ipykernel没有蟒蛇卸载ipykernel?

+1

卸载它们,然后重新安装在conda中。 – AChampion

回答

0

没有答案,我想

pip uninstall ipykernel 

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

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