Difference between revisions of "Python: Anaconda - Install"

From OnnoWiki
Jump to navigation Jump to search
Line 30: Line 30:
 
  vi /root/.bashrc
 
  vi /root/.bashrc
  
Tambahkan
+
Tambahkan / pastikan ada ...
  
 
  export PATH=/root/anaconda2/bin:$PATH
 
  export PATH=/root/anaconda2/bin:$PATH
 +
export PATH="/root/anaconda3/bin:$PATH"
  
 
Jalankan
 
Jalankan
  
 
  source /root/.bashrc
 
  source /root/.bashrc

Revision as of 20:35, 27 January 2022

  • Download Installer
https://www.continuum.io/downloads

WARNING: Besar source code Anaconda sekitar 300Mbyte lumayan buat di download.


  • Cek versi Python
python -V
  • Untuk Python 2.7:
bash Anaconda2-2.5.0-Linux-x86_64.sh
  • Untuk Python 3.5:
bash Anaconda3-2.5.0-Linux-x86_64.sh
bash Anaconda3-2021.11-Linux-x86_64.sh


Jika kita menggunakan root untuk menginstalasi Anaconda maka

[/root/anaconda2] >>> 
PREFIX=/root/anaconda2


Edit

vi /root/.bashrc

Tambahkan / pastikan ada ...

export PATH=/root/anaconda2/bin:$PATH
export PATH="/root/anaconda3/bin:$PATH"

Jalankan

source /root/.bashrc