CentOS 6.5 Vagrant 1.6.5
$ curl -L -O http://python.org/ftp/python/2.7.6/Python-2.7.6.tgz
$ tar zxf Python-2.7.6.tgz
$ cd Python-2.7.6
$ ./configure --prefix=/opt/local
$ sudo yum groupinstall "Development tools"
$ sudo yum install zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel readline-devel
$ cd Python-2.7.6
$ ./configure --prefix=/opt/local
$ sudo make && make altinstall
$ /opt/local/bin/python2.7
$ cd
$ curl -O https://pypi.python.org/packages/source/v/virtualenv/virtualenv-1.11.6.tar.gz
$ tar xvfz virtualenv-1.11.6.tar.gz
$ cd virtualenv-1.11.6
$ sudo /opt/local/bin/python2.7 setup.py install
$ cd
$ /opt/local/bin/virtualenv demo
$ source demo/bin/activate
$ python
$ pip
$ pip install Django ipython
Recommended Posts