JavaShuo
栏目
标签
CentOS 6.5 安装 Python3
时间 2019-11-08
标签
centos
6.5
安装
python3
python
栏目
CentOS
繁體版
原文
原文链接
安装环境 yum install gcc yum install zlib-devel yum install make
下载python版本 wget
http://www.python.org/ftp/python/3.4.0/Python-3.4.0.tgz
解压缩、编译和安装 tar -zxvf Python-3.4.0.tgz cd Python-3.4.0 ./configure --prefix=/opt/python3 make all make install 清除以前编译的可执行文件及配置文件。 make clean 清除全部生成的文件 make distclean
查看安装的新版本信息 /opt/python3/bin/python3 -V Python 3.4.0 由此看出编译安装的新版本python生效了
作个软链接到当前用户的bin目录 ln -s /opt/python3/bin/python3 ~/bin/python3
升级安装好新版本python之后,默认依然是python2.6 将文件头部的#!/usr/bin/python修改成 #!/opt/python3/bin/python3 便可。
相关文章
1.
CentOS 6.5 安装 Python3
2.
Centos 6.5安装Python3.6
3.
Centos 6.5 安装
4.
CentOS 6.5安装Apache
5.
CentOS 6.5 安装 Tengine
6.
CentOS 6.5 安装VNC
7.
Centos 6.5 Oracle 安装
8.
centos 6.5 安装redis
9.
CentOS 6.5安装jdk1.8
10.
centos 6.5 安装mongodb2.6
更多相关文章...
•
Docker 安装 CentOS
-
Docker教程
•
CentOS Docker 安装
-
Docker教程
•
Composer 安装与使用
•
IntelliJ IDEA安装代码格式化插件
相关标签/搜索
CentOS 6.5
6.5
安装
python3
centos
PyCharm的安装
工具安装
ROS安装
环境安装
Docker安装
Python
CentOS
Hibernate教程
Redis教程
Spring教程
0
分享到微博
分享到微信
分享到QQ
每日一句
每一个你不满意的现在,都有一个你没有努力的曾经。
最新文章
1.
CVPR 2020 论文大盘点-光流篇
2.
Photoshop教程_ps中怎么载入图案?PS图案如何导入?
3.
org.pentaho.di.core.exception.KettleDatabaseException:Error occurred while trying to connect to the
4.
SonarQube Scanner execution execution Error --- Failed to upload report - 500: An error has occurred
5.
idea 导入源码包
6.
python学习 day2——基础学习
7.
3D将是页游市场新赛道?
8.
osg--交互
9.
OSG-交互
10.
Idea、spring boot 图片(pgn显示、jpg不显示)解决方案
本站公众号
欢迎关注本站公众号,获取更多信息
相关文章
1.
CentOS 6.5 安装 Python3
2.
Centos 6.5安装Python3.6
3.
Centos 6.5 安装
4.
CentOS 6.5安装Apache
5.
CentOS 6.5 安装 Tengine
6.
CentOS 6.5 安装VNC
7.
Centos 6.5 Oracle 安装
8.
centos 6.5 安装redis
9.
CentOS 6.5安装jdk1.8
10.
centos 6.5 安装mongodb2.6
>>更多相关文章<<