78

そのようにcondaパッケージをインストールしました:

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

ピップと環境が台無しになっているので、アンインストールしたいです。

  • condaを完全にアンインストールするにはどうすればよいですか?
  • 私のpip管理パッケージもアンインストールしますか? もしそうなら、pip で管理されているパッケージをアンインストールせずに安全に conda をアンインストールする方法はありますか?
4

5 に答える 5

89

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
于 2015-04-13T22:58:15.813 に答える
44

The proper way to fully uninstall conda (Anaconda / Miniconda):

  1. Remove all conda-related files and directories using the Anaconda-Clean package

    conda activate your_conda_env_name
    conda install anaconda-clean
    anaconda-clean # add `--yes` to avoid being prompted to delete each one
    
  2. Remove your entire conda directory

    rm -rf ~/miniconda3
    
  3. Remove the line which adds the conda path to the PATH environment variable

    vi ~/.bashrc
    # -> Search for conda and delete the lines containing it
    # -> If you're not sure if the line belongs to conda, comment it instead of deleting it just to be safe
    source ~/.bashrc
    
  4. Remove the backup folder created by the the Anaconda-Clean package NOTE: Think twice before doing this, because after that you won't be able to restore anything from your old conda installation!

    rm -rf ~/.anaconda_backup
    

Reference: Official conda documentation

于 2020-07-10T15:46:26.587 に答える
8

Windows を使用している場合は、miniconda を検索するだけでフォルダーが見つかります。フォルダーに移動すると、miniconda アンインストール exe ファイルが見つかります。それを実行します。

于 2020-04-20T14:33:17.973 に答える
1

@Sunil の回答を更新するには: Windows では、Miniconda には通常のアンインストーラがあります。「設定/アプリ/アプリと機能」メニューに移動するか、スタート ボタンをクリックし、「アンインストール」と入力してから、「プログラムの追加と削除」をクリックし、最後に Miniconda アンインストーラーをクリックします。

于 2020-09-08T13:00:15.443 に答える