如何卸载mini conda? Python [英] How to uninstall mini conda? python
本文介绍了如何卸载mini conda? Python的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我已经安装了conda软件包:
I've install the conda package as such:
$ wget http://bit.ly/miniconda
$ bash miniconda
$ conda install numpy pandas scipy matplotlib scikit-learn nltk ipython-notebook seaborn
我想卸载它,因为它弄乱了我的点子和环境.
I want to uninstall it because it's messing up my pips and environment.
- 如何完全卸载conda?
- 会同时卸载我的pip托管软件包吗?如果是这样,是否可以安全地卸载conda而不卸载pip管理的软件包?
- How do I uninstall conda totally?
- Will it uninstall also my pip managed packages? If so, is there a way to uninstall conda safely without uninstalling packages managed by pip?
推荐答案
为了卸载miniconda ,只需删除miniconda
文件夹,
In order to uninstall miniconda, simply remove the miniconda
folder,
rm -r ~/miniconda/
为避免不同python环境之间的冲突,可以使用virtualenv
.特别是对于miniconda,可以使用以下工作流程,
As to avoid conflicts between different python environements, you can use virtualenv
. In particular, with miniconda, the following workflow could be used,
$ 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
这篇关于如何卸载mini conda? Python的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文