[Tutorial] Install Python Linux Ubuntu 12
|Shares :

[Tutorial] Install Python Linux Ubuntu 12

In previous article :  [Tutorial] Install Python in Windows explained you how to do it in Windows. For Python is a Linux Programming friend, its recommended that you develop or learn Python under Linux OS ( Ubuntu etc).

Python is divided into 2 version of development ( version 2 and 3). both have some different syntax . 

So will find that people install on of them ( version 2 or 3). you better avoid installing them in one OS for its documented to have some problems. You need to specify some commands to make them work together (CMIIW). 


Install Python  


Type this in your terminal line by line :
sudo apt-get install build-essential
sudo apt-get install libreadline-gplv2-dev libncursesw5-dev libssl-dev libsqlite3-dev tk-dev libgdbm-dev libc6-dev libbz2-dev
The above command will install python dependency libraries for you.

I'd recommend that you install version 2. 

After install dependencies completed, run this in your terminal : 
wget http://python.org/ftp/python/2.7.6/Python-2.7.6.tgz

Extract and go to the dirctory:

tar -xvf Python-2.7.6.tgz
cd Python-2.7.6

now run this to install it
./configure
make
sudo make install

Your Python should be installed.



Comment below for questions 



Tags : #linux #python #install


SHARES :


Budy K's Avatar

Sains & Teknologi Enthusiast, Software Developer. Check my profile!
> 75% komen akan dibalas. Mohon sabar ya. Simpan halaman ini dan cek kembali lagi

Comments

* Email will not be published


    Privacy .ToS .Contact Us
    © 2017 Teknosains