How to uninstall mini conda? python

2019-03-11 16:18发布

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.

  • 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?

2条回答
孤傲高冷的网名
2楼-- · 2019-03-11 16:41

your have that comment to line in ~/.bashrc:

#export PATH=/home/jolth/miniconda3/bin:$PATH

and run:

source ~/.bashrc
查看更多
乱世女痞
3楼-- · 2019-03-11 16:52

In order to uninstall miniconda, simply remove the miniconda folder,

rm -r ~/miniconda/

this should not remove any of your pip installed packages (but you should check the contents of the ~/miniconda folder to confirm).

As to avoid conflicts between different python environements, you can use virtualenv. In particular, with miniconda, the following workflow could be used,

$ 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
查看更多
登录 后发表回答