Search this blog

Monday, February 29, 2016

installing python 3 on centos 6.7

installing python 3 on centos 6.7 
centos has this annoying aspect of being tied to older versions. but I wish to focus on python 3 these days, even while using an older centos, and without changing the system in a manner that may create unexpected result. what can i do ? 

1) install scl 
a) browse complete list of packages available from the SCL 
yum --disablerepo="*" --enablerepo="scl" list available

b) search only SCL packages
yum --disablerepo="*" --enablerepo="scl" search <keyword>

c) list of packages installed from the SCL
scl --list

2) install python 3
sudo yum --disablerepo="*" --enablerepo="scl" install python33       

3) run python 3
scl enable python33 bash


further reading



Installing Python

what do you need for beginnings? 
  • python
  • idle
  • pip
in mint17 (my current favorite o.s), the process was:
  1. sudo apt-get install python3 
  2. sudo apt-get install idle3
  3. sudo apt-get install python-pip
(on windows, go to python downloads, download & install. You Python, IDLE & pip are included;
run pip from PYTHON-HOME\scripts, which would mean on the average windows machine,
something like the folloing command -  c:\python34\scripts\pip)

remark:
this how-to guide describes python 3.4.

further reading - some interesting discussions