2017-05-06 588 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。