Difference between revisions of "Python: Anaconda - Install"

From OnnoWiki
Jump to navigation Jump to search
 
(7 intermediate revisions by the same user not shown)
Line 2: Line 2:
  
 
  https://www.continuum.io/downloads
 
  https://www.continuum.io/downloads
 +
 +
'''WARNING: Besar source code Anaconda sekitar 300Mbyte''' lumayan buat di download.
 +
 +
 +
Sebagai user biasa lakukan,
  
 
* Cek versi Python
 
* Cek versi Python
Line 9: Line 14:
 
* Untuk Python 2.7:
 
* Untuk Python 2.7:
  
  bash Anaconda2-2.4.1-Linux-x86_64.sh
+
  bash Anaconda2-2.5.0-Linux-x86_64.sh
  
* Untuk Python 3.5:
+
* Untuk Python 3.8:
  
  bash Anaconda3-2.4.1-Linux-x86_64.sh
+
  bash Anaconda3-2.5.0-Linux-x86_64.sh
 +
bash Anaconda3-2021.11-Linux-x86_64.sh
  
  
Line 22: Line 28:
  
 
   
 
   
Edit
+
Edit / Lihat
  
  vi /root/.bashrc
+
  vi ~/.bashrc
 +
cat ~/.bashrc
  
Tambahkan
+
Tambahkan / pastikan ada, seperti, ...
  
 
  export PATH=/root/anaconda2/bin:$PATH
 
  export PATH=/root/anaconda2/bin:$PATH
 +
export PATH="/home/onno/anaconda3/bin:$PATH"
 +
 +
Jalankan
 +
 +
source ~/.bashrc

Latest revision as of 06:33, 29 January 2022

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

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


Sebagai user biasa lakukan,

  • Cek versi Python
python -V
  • Untuk Python 2.7:
bash Anaconda2-2.5.0-Linux-x86_64.sh
  • Untuk Python 3.8:
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 / Lihat

vi ~/.bashrc
cat ~/.bashrc

Tambahkan / pastikan ada, seperti, ...

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

Jalankan

source ~/.bashrc