Downloaded Python 3.3 from the official site but no idea how to install it.
I'm using Ubuntu 12.04
|
Downloaded Python 3.3 from the official site but no idea how to install it. I'm using Ubuntu 12.04 |
|||||
|
|
Python 3.3 has been released on 29 September 2012, several months after Ubuntu 12.04 was released. It is included in Ubuntu 12.10 though as If you want to install Python 3.3, you can either search for a PPA (my quick search found none though) or to compile Python from source. This is very easy and allows you to have multiple Python versions without messing with system python interpreter (which is used by a lot of Ubuntu own programs). On my dev machine I have literally dozens of different Python versions from 2.4 to 3.2 living happily in we need C compiler and other stuff to compile Python
SQLite libs need to be installed in order for Python to have SQLite support.
Download and compile Python:
Some nice touches to install a
Alternatively, you can install a bash alias named
And this is it. Now you can have any Python version, even an alpha, or, say, to have a few copies of Python 3.3 compiled with different settings... not that many people need that though :) There's a software called Pythonbrew which may help you to automate the procedure - what it essentially does is download and compile Python, installing it in your home directory. |
|||||||||||||||
|
|
Here is what I did to install Python 3.3 on Ubuntu 12.04:
You should see something similar:
Some Additional things that are useful... you can create a virtual environment in your home and just activate Python 3.3 on demand..
Enjoy! |
||||
|
|
|
The deadsnakes PPA has packages for old and new python versions:
|
|||
|
|
|
Also you can use something like pythonbrew:
It's quite easy to use, and another benefit, that it's possible to install any python version you need. Please see their docs for mode details |
|||
|
|