linux下安装python注意事项
一:windows安装python
1:需要下载python安装包
2:安装配置环境变量
3:cmd下输入python验证:python,python -v
二:linux环境下安装python
1:6.3系统默认给的python2.6,7.2默认给的python2.7.5,
2:高版本,需要下载安装python
3:备份linux系统原来的python版本
mv /usr/bin/python /usr/bin/python2.6
4:把yum配置文件python改为本服务器pyhthon版本
vi /usr/bin/yum 把#!/usr/bin/python修改为#!/usr/bin/python2.6,保存
5:做软连
ln -s /usr/local/share/Python-2.7.11/bin/python2.7 /usr/bin/python
6:验证python:python,python -v
7:验证yum:yum
8:验证pip:pip