Pustaka Taratsa

Baca teks (EPUB): Orange: Compile Python Terakhir

1 bagian

Teks ini diambil langsung dari berkas EPUB; tata letak dan gambar tidak disertakan. Untuk tampilan lengkap, silakan merujuk pada dokumen asli.

Daftar isi
  1. Orange: Compile Python Terakhir
  2. Step 1 – Install Required Packages
  3. Step 2 – Download Python
  4. Step 3 – Compile Python Source
  5. Step 4 – Check the Python Version

Orange: Compile Python Terakhir

Sumber: https://onnocenter.or.id/wiki/index.php/Orange:_Compile_Python_Terakhir

Step 1 – Install Required Packages

sudo apt-get install build-essential checkinstall
sudo apt-get install libreadline-gplv2-dev libncursesw5-dev libssl-dev libsqlite3-dev tk-dev libgdbm-dev libc6-dev libbz2-dev

Step 2 – Download Python

cd /usr/src
sudo wget https://www.python.org/ftp/python/3.6.2/Python-3.6.2.tgz

Now extract the downloaded package.

sudo tar xzf Python-3.6.2.tgz

Step 3 – Compile Python Source

cd Python-3.6.2
sudo ./configure
sudo make altinstall

make altinstall is used to prevent replacing the default python binary file /usr/bin/python.

Step 4 – Check the Python Version

$ python3.6 -V
Python 3.6.2