赞
踩
python源:https://www.python.org/ftp/python/
更新至其余版本替换源路径及相应文件版本即可
- 752 wget https://www.python.org/ftp/python/3.6.0/Python-3.6.0.tgz
- 753 pwd
- 754 ls
- 755 tar -zxvf Python-3.6.0.tgz
- 756 ls
- 757 cd ./Python-3.6.0
- 758 ./configure
- 759 make
- 760 make install
- 761 python --version
- 762 python -V
- 763 python3 -V
- 764 ls -al /usr/bin | grep python
- 765 mv /usr/bin/python /usr/bin/python.bak
- 766 ln -s /usr/local/bin/python3 /usr/bin/python
- 767 python -V
- 768 vi /usr/bin/yum
- 769 vi /usr/libexec/urlgrabber-ext-down
- 770 history
vi两步: 打开后将 #!/usr/bin/python 改为 #!/usr/bin/python2.7,保存退出即可。
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。