Orange: Compile Python Terakhir
Revision as of 05:30, 29 July 2017 by Onnowpurbo (talk | contribs) (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...")
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.5.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