2015-04-13 644 views
21

我已經安裝暢達包這樣:如何卸載迷你conda?蟒蛇

$ wget http://bit.ly/miniconda 
$ bash miniconda 
$ conda install numpy pandas scipy matplotlib scikit-learn nltk ipython-notebook seaborn 

我想卸載它,因爲它搞亂了我的點子和環境。

  • 如何完全卸載conda?
  • 它是否會卸載我的點管理包?如果是這樣,是否有一種方法可以安全地卸載conda,而無需卸載由pip管理的軟件包?

回答

26

爲了uninstall miniconda,只需刪除miniconda文件夾,

rm -r ~/miniconda/ 

這不應該刪除任何畫中畫安裝的軟件包(但你應該檢查~/miniconda文件夾的內容,確認)。

爲避免不同python environements之間的衝突,您可以使用virtualenv。特別是,miniconda,下面的工作流程可以使用,

$ wget http://bit.ly/miniconda 
$ bash miniconda 
$ conda env remove --yes -n new_env # remove the environement new_env if it exists (optional) 
$ conda create --yes -n new_env pip numpy pandas scipy matplotlib scikit-learn nltk ipython-notebook seaborn python=2 
$ activate new_env 
$ # pip install modules if needed, run python scripts, etc 
    # everything will be installed in the new_env 
    # located in ~/miniconda/envs/new_env 
$ deactivate 
+4

如果你使用'pip'的東西安裝到Miniconda然後Python去除Miniconda目錄也將其刪除。如果你將它們安裝到另一個Python安裝中,那麼它不會。 – asmeurer

+7

也刪除'〜/ .bash_profile'中的路徑導出 – math

+1

路徑添加到〜/ .bashrc 4.1.11 – bugmenot123