How to build a python2.7 series development environment with Vagrant

Setting environment

CentOS 6.5 Vagrant 1.6.5

Get python 2.7.6

$ 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

Install Developer Tools with administrator privileges

$ sudo yum groupinstall "Development tools"
$ sudo yum install zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel readline-devel

Install python 2.7.6

$ cd Python-2.7.6
$ ./configure --prefix=/opt/local
$ sudo make && make altinstall

Install VirtualEnv

$ /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

Get Django and iPython modules using pip

$ cd
$ /opt/local/bin/virtualenv demo
$ source demo/bin/activate
$ python
$ pip
$ pip install Django ipython

Recommended Posts

How to build a python2.7 series development environment with Vagrant
How to get into the python development environment with Vagrant
[Python] Build a Django development environment with Docker
I tried to build a Mac Python development environment with pythonz + direnv
Create a python development environment with vagrant + ansible + fabric
How to build a development environment for TensorFlow (1.0.0) (Mac)
How to build a Python environment on amazon linux 2
How to build a new python virtual environment on Ubuntu
Easily build a development environment with Laragon
How to build a sphinx translation environment
I want to build a Python environment
How to prepare Python development environment [Mac]
Build a python virtual environment with pyenv
Build a modern Python environment with Neovim
[AWS] Development environment version that tried to build a Python environment with eb [Elastic Beanstalk]
How to build a LAMP environment using Vagrant and VirtulBox Note
How to build Python and Jupyter execution environment with VS Code
How to read a CSV file with Python 2/3
Build a C language development environment with a container
How to create a Python virtual environment (venv)
Build Python development environment with Visual Studio Code
Build a python environment with ansible on centos6
Create a python3 build environment with Sublime Text3
Build a Django environment with Vagrant in 5 minutes
Build a Python development environment on your Mac
Build a Django development environment with Doker Toolbox
[Note] How to create a Ruby development environment
Build a Python environment with OSX El capitan
Quickly build a Python Django environment with IntelliJ
[Note] How to create a Mac development environment
Build a Python machine learning environment with a container
Build a Python development environment on Raspberry Pi
Build a python execution environment with VS Code
Get a quick Python development environment with Poetry
Summary of how to build a LAMP + Wordpress environment with Sakura VPS
Build python3 environment with ubuntu 16.04
Build python environment with direnv
[ev3dev × Python] Build ev3dev development environment
Build a Python environment offline
How to convert / restore a string with [] in python
Build a GVim-based Python development environment on Windows 10 (3) GVim8.0 & Python3.6
[Python] How to draw a line graph with Matplotlib
How to set up a Python environment using pyenv
Build a python virtual environment with virtualenv and virtualenvwrapper
Build a python environment for each directory with pyenv-virtualenv
Build a GVim-based Python development environment on Windows 10 (1) Installation
I want to easily build a model-based development environment
Build a Python development environment on Mac OS X
Build a python virtual environment with virtualenv and virtualenvwrapper
Build a Python development environment using pyenv on MacOS
[Python] How to create a 2D histogram with Matplotlib
Build a development environment with Poetry Django Docker Pycharm
[Python] How to draw a scatter plot with Matplotlib
Set up a Python development environment with Sublime Text 2
Build a local development environment with WSL + Docker Desktop for Windows + docker-lambda + Python
[Python] How to create a local web server environment with SimpleHTTPServer and CGIHTTPServer
How to write a Python class
Python: How to use async with
How to install NPI + send a message to line with python
Build a Django development environment with Docker! (Docker-compose / Django / postgreSQL / nginx)
Build python virtual environment with virtualenv