How to Install Python 3.3 on Ubuntu 13.04, 12.10 and 12.04

Hello Linux Geeksters.
In this article I will show you how to install Python 3.3, the latest Python version available on Ubuntu 13.04 Raring Ringtail, Ubuntu 12.10 Quantal Quetzal and Ubuntu 12.04 Precise Pangolin.
http://www.jotlab.com/wp-content/uploads/2008/08/python.jpg

You can install Python 3.3 via PPA, on Ubuntu 12.10 and Ubuntu 12.04:

Install dependencies:
$ sudo apt-get install python-software-properties
Add the repo:
$ sudo add-apt-repository ppa:fkrull/deadsnakes
Update the repo index:
$ sudo apt-get update
Install Python 3.3:
$ sudo apt-get install python3.3

Installing Python 3.3 on Ubuntu 13.04:

Because there is no PPA for Ubuntu 13.04, we’ll do an installation from sources.
Installing the dependencies:
$ sudo apt-get install build-essential libsqlite3-dev sqlite3 bzip2 libbz2-dev
Download and compile python:
$ wget http://python.org/ftp/python/3.3.0/Python-3.3.0.tar.bz2
$ tar jxf ./Python-3.3.0.tar.bz2
$ cd ./Python-3.3.0
$ ./configure --prefix=/opt/python3.3
$ make && sudo make install
Some nice touches to install a py command by creating a symlink:
$ mkdir ~/bin
$ ln -s /opt/python3.3/bin/python ~/bin/py


ENLACE FUENTE: http://linuxg.net/how-to-install-python-3-3-on-ubuntu-13-04-12-10-and-12-04/

0 comentarios: