Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
CentOS 6.8: Install Python 2.7.10, pip, virtualenv, and virtualenvwrapper on CentOS
# According to:
# How To Set Up Python 2.7.6 and 3.3.3 on CentOS 6.4
yum -y update
yum groupinstall -y 'development tools'
yum install -y zlib-dev openssl-devel sqlite-devel bzip2-devel
yum install xz-libs
xz -d Python-2.7.10.tar.xz
tar -xvf Python-2.7.10.tar
cd Python-2.7.10
./configure --prefix=/usr/local
make altinstall
export PATH="/usr/local/bin:$PATH"
Copy link

trd commented Jan 25, 2017

How can you install pip from here?

As we all know, pip requires setuptools but when trying to install setuptools on a fresh new CentOS 6.8 with Python 2.7 installed exactly as in this script, it raises that there are some core python packages missing which leads to a circular dependency error.
Package "setuptools" wants "six", "six" wants "packaging", "packaging" wants "pyparser" and "pyparser" wants "setuptools".

Thank you.

Copy link

evinhas commented Sep 16, 2017

Maybe you could use the following commands for getting setup-tools and pip installed

install setup tools

curl | python2.7 -

install pip

curl | python2.7 -

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment