码迷,mamicode.com
首页 > 编程语言 > 详细

CentOS python 安装

时间:2018-07-18 23:22:31      阅读:170      评论:0      收藏:0      [点我收藏+]

标签:源文件   form   class   efault   copy   its   mat   www   help   

1. 获取源文件

wget https://www.python.org/ftp/python/2.7/Python-2.7.tgz (或  wget https://www.python.org/ftp/python/3.5.2/Python-3.5.2.tgz)

tar -vxf Python-2.7.tgz

cd Python-2.7

2. 安装

./configure

make

make install

3. 检查

python -V

Python 3.5.2 (default, Apr 21 2018, 10:12:51) 
[GCC 4.4.7 20120313 (Red Hat 4.4.7-18)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> 

  

CentOS python 安装

标签:源文件   form   class   efault   copy   its   mat   www   help   

原文地址:https://www.cnblogs.com/liumwen/p/9327013.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!