下載Anaconda
https://repo.anaconda.com/archive/Anaconda3-2020.11-Linux-x86_64.sh
安裝Anaconda
$ sudo sh Anaconda3-2020.11-Linux-x86_64.sh[sudo] study 的密碼:Welcome to Anaconda3 2020.11In order to continue the installation process, please review the licenseagreement.Please, press ENTER to continue>>> ... Do you accept the license terms? [yes|no]>>> yes Anaconda3 will now be installed into this location:/home/study/anaconda3 - Press ENTER to confirm the location - Press CTRL-C to abort the installation - Or specify a different location below[/home/study/anaconda3] >>> ... installation finished.Do you wish the installer to initialize Anaconda3by running conda init? [yes|no][no] >>> yes Thank you for installing Anaconda3!提示 「conda:未找到命令」 的解決辦法
往 /.bashrc 文件末尾追加 anaconda 的路徑。
echo 'export PATH="/home/hans/anaconda3/bin:$PATH"' >> ~/.bashrcsource ~/.bashrc驗證安裝
重新執行下下面指令,能夠正常列印版本號,就代表安裝成功。
查看conda版本 :conda -V
查看python 版本:python -V更新Anaconda
$ conda update conda$ conda update anaconda刪除Anaconda
$sudo rm -rf /usr/local/anaconda3# 刪除~/.bashrc和/etc/profile的修改#清空隱藏文件:rm -rf ~/.condarc ~/.conda ~/.continuum