Install Python 2.7 for CentOS 6

CentOS 6 uses Python 2.6 by default.

The following is how I install Python 2.7 and Django with official packages.

$ yum install python27 python27-devel python27-setuptools

$ yum install libffi-devel openssl-devel

$ pip2.7 install requests[security]

$ pip2.7 install uwsgi virtualenv virtualenvwrapper Django MySQL-python

Then uwsgi will use python2.7 automatically.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s