Linuxのバージョンでアップグレードのpython
Pythonのコンパイルをダウンロードして、最新バージョン2.7.13をインストール
<前>
wgetのhttps://www.python.org/ftp/python/2.7.12/Python-2.7.13.tar.xz
XZ -dのPython-2.7.13.tar.xzの
Pythonの-2.7.13 XFタール.tar
CDのPython-2.7.13
は./configure --prefix =は/ usr / local /のpython-2.7.13
のmake
make installを
</ PRE>
Pythonの-2.7.13ディレクトリにインストールされます/usr/local/python-2.7.13
システムは、Pythonに付属しているの/ usr / binディレクトリの下に
<前>
LL -trは/ usr / binに/ pythonの*
/usr/bin/python2.6-config
/usr/bin/python2.6
は/ usr / binに/ pythonの
は/ usr / binに/ python2 - >のpython
は/ usr / binに/のpython-config設定- >のpython2.6-config設定
</ PRE>
Pythonのデフォルトのバージョンを更新し
、古いのpythonをバックアップします
<前>
MVは/ usr / binに/ pythonの/usr/bin/python2.6.6
MVは/ usr / binに/のpython-config設定/usr/bin/python2.6-config
LN -s /usr/local/python-2.7.13/bin/ python2.7は/ usr / binに/ pythonの
LN -s /usr/local/python-2.7.13/bin/python-configは/ usr / binに/のpython-config設定
LN -s /usr/local/python-2.7.13/ビン/ python2.7 /usr/bin/python2.7
</ PRE>
Pythonの新しいバージョンをチェックアウト
<前>
のpython --version
のPython 2.7.13
</ PRE>