2015-04-13 75 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