linux環境上anaconda的安裝與卸載


首先下載linux上anaconda的安裝包:

$ wget https://repo.anaconda.com/archive/Anaconda3-5.1.0-Linux-x86_64.sh

然后賦權並執行安裝程序:

$ chmod +x Anaconda3-5.1.0-Linux-x86_64.sh
$ ./Anaconda3-5.1.0-Linux-x86_64.sh

安裝過程如下:

$ ./Anaconda3-5.1.0-Linux-x86_64.sh 

Welcome to Anaconda3 5.1.0 In order to continue the installation process, please review the license agreement. Please, press ENTER to continue >>> =================================== Anaconda End User License Agreement =================================== ...

Do you accept the license terms? [yes|no]
>>> yes

Anaconda3 will now be installed into this location:
/home/py/anaconda3

- Press ENTER to confirm the location
- Press CTRL-C to abort the installation
- Or specify a different location below

[/home/py/anaconda3] >>> /anaconda/anaconda3      輸入自定義安裝路徑,如果用默認的話回車跳過

然后將anaconda加入環境變量,並使其生效:

$ vi .bash_profile 
在最后一行加上如下配置:
export PATH=/anaconda/anaconda3/bin:$PATH 如果是默認安裝路徑的話則為: export PATH=/home/py/anaconda3/bin:$PATH 然后使其生效: $source .bash_profile

最后檢測一下安裝結果:

$ python -V
Python 3.6.4 :: Anaconda, Inc.

如果需要卸載anaconda的話,只需要刪除anaconda目錄即可:

$ rm -rf /anaconda/anaconda3

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM