yum install gcc gcc-c++ zlib-devel
1、下载python3.5 wget https://www.python.org/ftp/python/3.5.0/Python-3.5.0.tgz tar zxvf Python-3.5.0.tgz cd Python-3.5.0 ./configure --prefix=/usr/local/python3.5 make make install
2、下载并安装setuptools 18.5 wget https://bootstrap.pypa.io/ez_setup.py -O - | python
3、备份原有python命令执行文件 mv /usr/bin/python /usr/bin/pythonbak 4、创建新python软连接 ln -s /usr/local/python3.5/bin/python3.5 /usr/bin/python 5、查看python版本
6、修改yum配置文件 (责任编辑:IT) |