Skip to content

Instantly share code, notes, and snippets.

View cosmonaut-ok's full-sized avatar

Alexander Vynnyk cosmonaut-ok

View GitHub Profile
# coding: utf-8
# In[255]:
from math import *
# In[256]:
FRAME_WIDTH = 0.36 / 1.6
@cosmonaut-ok
cosmonaut-ok / python27_on_centos65.md
Created March 30, 2018 13:53 — forked from dalegaspi/python27_on_centos65.md
Installing Python 2.7 on CentOS 6.5

Installing Python 2.7 on Centos 6.5

Centos 6.* comes with Python 2.6, but we can't just replace it with v2.7 because it's used by the OS internally (apparently) so you will need to install v2.7 (or 3.x, for that matter) along with it. Fortunately, CentOS made this quite painless with their Software Collections Repository

sudo yum update # update yum
sudo yum install centos-release-scl # install SCL 
sudo yum install python27 # install Python 2.7

To use it, you essentially spawn another shell (or script) while enabling the newer version of Python:

Cloning into 'color-theme-leuven'...
fatal: could not read Username for 'https://github.com': No such device or address
ID Updated Visibility Description