How to customize Centos 7.x, Python 3.x friendly ?

CentOS by default ships with Python 2.7. If you are hard core developer who needs lot of PiP packages and newer Python (say 3.6), some amount of work customization needs to be done.

Step 1: Install basic Linux packages

$ sudo yum install epel-release -y

$ sudo yum install gcc-c++ -y

$ sudo yum install python-devel -y

$ sudo yum install unixODBC-devel -y

Step 2: Install Python 3.6

$ sudo yum -y install
$ sudo yum -y install python36u

Step 3 : Install PIP for Python 3.6

$ sudo yum -y install python36u-pip

Step 4 : Update Python development tools

$ sudo yum -y install python36u-devel

Step 5 : Upgrade setuptools if needed.

$ sudo pip install --upgrade setuptools

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: