如何卸载迷你康达?Python
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/29596350/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
How to uninstall mini conda? python
提问by alvas
I've install the conda package as such:
我已经安装了 conda 包:
$ 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.
我想卸载它,因为它弄乱了我的 pips 和环境。
- 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?
- 如何完全卸载 conda?
- 它也会卸载我的 pip 管理的软件包吗?如果是这样,有没有办法在不卸载 pip 管理的软件包的情况下安全卸载 conda?
采纳答案by rth
In order to uninstall miniconda, simply remove the miniconda
folder,
为了卸载 miniconda,只需删除miniconda
文件夹,
rm -r ~/miniconda/
As to avoid conflicts between different python environements, you can use virtualenv
. In particular, with miniconda, the following workflow could be used,
为了避免不同python环境之间的冲突,您可以使用virtualenv
. 特别是,对于 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
回答by Jolth
your have to comment that line in ~/.bashrc:
您必须在 ~/.bashrc 中注释该行:
#export PATH=/home/jolth/miniconda3/bin:$PATH
and run:
并运行:
source ~/.bashrc
回答by Sunil Mathew
If you are using windows, just search for miniconda and you'll find the folder. Go into the folder and you'll find a miniconda uninstall exe file. Run it.
如果您使用的是 Windows,只需搜索 miniconda 即可找到该文件夹。进入该文件夹,您将找到一个 miniconda 卸载 exe 文件。运行。