首页 > 代码库 > Linux安装python

Linux安装python

1.打开终端,输入:wget https://www.python.org/ftp/python/3.5.0/Python-3.5.0b4.tgz下载完毕后 
2.输入解压命令:tar –zxvf Python-3.5.0b4.tgz;
3.切换到解压的目录:cd Python*
4.接下来就是安装:./configure;
5.make;
6.sudo make install
7.然后查看一下就知道了:输入python如果出现下面的提示:Python 3.5.0 (#1, Aug 06 2015, 14:04:52)[GCC 4.1.1 20061130 (Red Hat 4.1.1-43)] on l
nux2;Type “help”, “copyright”, “credits” or “license” for more information.
就说明成功了,

Linux安装python