Install Python 3.3 in Ubuntu 12.04 by referring to the explanation of Perfect Python.
$ which python
/usr/bin/python
$ python --version
Python 2.7.3
Put in from sauce
$ sudo apt-get install zlib1g-dev libssl-dev libreadline-dev libsqlite3-dev tk-dev libbz2-dev libgdbm-dev tcl-dev
$ wget http://www.python.org/ftp/python/3.3.0/Python-3.3.0.tar.bz2
$ tar xjf Python-3.3.0.tar.bz2
$ cd Python-3.3.0
$ ./configure --prefix=$HOME/python/python3.3
$ make && make install
Create a virtual environment with pyvenv. Something like rbenv or perlbrew Create it with the name default.
$ cd ~/programing/projects
$ ~/python/python3.3/bin/pyvenv default
$ source default/bin/activate
oh-my-zsh now shows (default) at the beginning of the line. Apparently, the environment has changed
(default) $ which python
/home/da1/programing/projects/default/bin/python
(default) $ python --version
Python 3.3.0
It's done.
pip installation easy_install-> pip
$ wget http://python-distribute.org/distribute_setup.py
$ python distribute_setup.py
$ easy_install pip
Finally, I installed IPython, which is an interactive environment.
$ pip install ipython
Recommended Posts