如何卸载mini conda?蟒蛇

发布于 2021-01-29 15:07:31

我已经安装了conda包:

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

我要卸载它,因为它弄乱了我的点子和环境。

  • 如何完全卸载conda?
  • 还会卸载我的pip托管软件包吗? 如果是这样,有没有一种方法可以安全地卸载conda而不卸载pip管理的软件包?
关注者
0
被浏览
302
1 个回答
  • 面试哥
    面试哥 2021-01-29
    为面试而生,有面试问题,就找面试哥。

    卸载miniconda,只需删除miniconda文件夹,

    rm -r ~/miniconda/
    

    为了避免不同Python环境之间的冲突,可以使用虚拟环境。特别是对于Miniconda,可以使用以下工作流程,

    $ wget https://repo.continuum.io/miniconda/Miniconda3-3.7.0-Linux-x86_64.sh -O ~/miniconda.sh
    $ 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
    


知识点
面圈网VIP题库

面圈网VIP题库全新上线,海量真题题库资源。 90大类考试,超10万份考试真题开放下载啦

去下载看看