通过 源码 安装 python

为了vim


PYTHON="3.4.1"

tget () { #try wget
    filename=`basename $1`
    echo "Downloading [${filename}]..."
    if [ ! -f ${filename} ];then
        wget $1
    fi

    echo "[OK] Downloaded [${filename}] "
}
tget https://www.python.org/ftp/python/${PYTHON}/Python-${PYTHON}.tgz
tar xf Python-${PYTHON}.tgz
cd Python-${PYTHON}	
./configure
make
make instal

你可能感兴趣的:(通过 源码 安装 python)