Install Python 3.3 on Ubuntu 12.04

Install Python 3.3 in Ubuntu 12.04 by referring to the explanation of Perfect Python.

Check the current situation

$ which python
/usr/bin/python
$ python --version             
Python 2.7.3

Installation

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

Virtual environment and pip

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

Install Python 3.3 on Ubuntu 12.04
Install OpenCV on Ubuntu + python
Install Python 3.8 on Ubuntu 18.04 (OS standard)
Install Python 3.8 on Ubuntu 20.04 (OS standard)
Install Python 3.9 on Ubuntu 20.04 (OS standard?)
Install confluent-kafka for Python on Ubuntu
Install Python 2.7 on Ubuntu 20.04 (OS standard?)
Install TensorFlow on Ubuntu
Install Python on Pidora.
Install Scrapy on python3
Install Python on Mac
Install Python 3 on Mac
Install PySide2 on Ubuntu
Install Python3.4 on CentOS 6.6
Install python on windows
build Python on Ubuntu
Install Python 3.4 on Mac
Install Theano on Ubuntu 12.04
Install angr on Ubuntu 18.04
Install pip / pip3 on Ubuntu
Install Python 3.6 on Docker
Steps to install Python environment on Ubuntu
Install pyenv and Python 3.6.8 on Ubuntu 18.04 LTS
Set up Python 3.4 on Ubuntu
Use matplotlib on Ubuntu 12 & Python
Install watchdog on Windows + Python 3.3
install python
Install python package in personal environment on Ubuntu
Install pygame on python3.4 on mac
Install Python 3.8 on CentOS 7 (SCL)
Put Python 3.x on Ubuntu
Install pandas 0.14 on python3.4 [on Mac]
Install GoLand IDE on Ubuntu
wsl Install PostgreSQL on Ubuntu 18.04
Introducing TensorFlow on Ubuntu + Python 2.7
[ROS] Install ROS (melodic) on Ubuntu (18.04)
Install Caffe on Ubuntu 14.04 (GPU)
Install Python 3.8 on CentOS 8 (AppStream)
Install Docker on WSL Ubuntu 18.04
[Python] [Chainer] [Windows] Install Chainer on Windows
Install MongoDB on Ubuntu 16.04 and operate via python
Install Bash on Ubuntu on Windows, Ruby, Python, Jupyter, etc.
Install Python Pillow on Amazon Linux
Python 3.4 pyvenv fails on Ubuntu 14.04 LTS
Install Caffe on Ubuntu 14.04 (CPU mode)
Install Python3 on Sakura server (FreeBSD)
Prepare Python development environment on Ubuntu
Install Mecab and mecab-python3 on Ubuntu 14.04
Install and run dropbox on Ubuntu 20.04
Install OpenCV and Chainer on Ubuntu
Building a Python environment on Ubuntu
Install CUDA 8.0 and Chainer on Ubuntu 16.04
Introducing Python using pyenv on Ubuntu 20.04
Install xgboost (python version) on Windows
Preparing python using vscode on ubuntu
Install Python on Windows + pip + virtualenv
Install Python 3.7 Anaconda on MAC, but Python 2
Install python3 on Mac (El Capitan)
Install fabric on Ubuntu and try
Install Python development environment on Windows 10
Build Python 3.8 + Pipenv environment on Ubuntu 18.04