How to install python3 and IPython on Centos6.x machines

Steps to install Python3 & IPython on Centos6 machines.

1.    yum -y install centos-release-scl


2. To install latest version of python3 and enable in bash

      yum -y install $(yum info rh-python3* |egrep  'Name' |awk '{print $3}'|grep -i 'rh-python3[0-9]$'|sort -V|tail -1)

     scl enable $(yum info rh-python3* |egrep  'Name' |awk '{print $3}'|grep -i 'rh-python3[0-9]$'|sort -V|tail -1) bash


3.  To install Pip & upgrade  pip
     yum -y install python-pip
     pip install --upgrade pip

4.  To install IPython
      pip install IPython

No comments:

Post a Comment

Boost Your Download Speed with lftp Segmentation

Looking for a faster way to download files via sftp to a Linux machine? Try using "lftp" instead. This tool offers segmented downl...

Other relevant topics