Difference between revisions of "Orange: Compile Python Terakhir"

From OnnoWiki
Jump to navigation Jump to search
(Created page with "==Step 1 – Install Required Packages== sudo apt-get install build-essential checkinstall sudo apt-get install libreadline-gplv2-dev libncursesw5-dev libssl-dev libsqlite3...")
 
 
Line 11: Line 11:
 
Now extract the downloaded package.
 
Now extract the downloaded package.
  
  sudo tar xzf Python-3.5.2.tgz
+
  sudo tar xzf Python-3.6.2.tgz
  
 
==Step 3 – Compile Python Source==
 
==Step 3 – Compile Python Source==

Latest revision as of 05:35, 29 July 2017

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