1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Bye-bye anaconda

Last updated at Posted at 2019-03-28

anacondaをuninstallする際のmemo.

cat /etc/debian_version 
9.8
$ conda install anaconda-clean

Collecting package metadata: done
Solving environment: done

## Package Plan ##

  environment location: /home/*username*/.pyenv/versions/anaconda3-4.3.1

  added / updated specs:
    - anaconda-clean


The following packages will be downloaded:

    package                    |            build
    ---------------------------|-----------------
    anaconda-clean-1.1.0       |           py36_1           7 KB
####(略)####
    ------------------------------------------------------------
                                           Total:       146.5 MB

The following NEW packages will be INSTALLED:

  anaconda-clean     pkgs/main/linux-64::anaconda-clean-1.1.0-py36_1
####(略)####

The following packages will be UPDATED:

####(略)####

Proceed ([y]/n)? y  #入力


Downloading and Extracting Packages
fontconfig-2.13.0    | 291 KB    | ##################################### | 100% 
####(略)####

Preparing transaction: done
Verifying transaction: done
Executing transaction: done
$ anaconda-clean --yes
Backup directory: /home/*username*/.anaconda_backup/2019-03-28T124457

bashプロファイルからanacondaパスを削除

$ vi ~/.bashrc

下記の行を削除

~/.bashrc
export PATH="$PYENV_ROOT/versions/anaconda3-4.3.1/bin/:$PATH"  #<-削除

anacondaディレクトリを削除

$ cd $PYENV_ROOT/versions/
$ ~/.pyenv/versions$ ls
anaconda3-4.3.1
$ rm -r anaconda3-4.3.1
$ python3 -V
pyenv: version `anaconda3-4.3.1' is not installed (set by /home/*username*/.pyenv/version)
$ source ~/.bashrc #設定再読込
$ python3 -V
Python 3.5.3

アンインストール完了。

source listへ追記

# su
# echo 'deb http://ftp.jp.debian.org/debian experimental main' >> /etc/apt/sources.list
# echo 'deb http://ftp.jp.debian.org/debian unstable main' >> /etc/apt/sources.list
# vi /etc/apt/apt.conf.d/00local
/etc/apt/apt.conf.d/00local
APT::Default-Release "stable"; #追加
```shell-session
# apt update
(略)
# apt install python3.7

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?