CentOS 7下安装Python3.6
程序员文章站
2022-05-28 11:47:15
•安装python3.6可能使用的依赖 yum install openssl-devel bzip2-devel expat-devel gdbm-devel readline-devel sqlite-devel •到python官网找到下载路径, 用wget下载 wget https://ww ......
•安装python3.6可能使用的依赖
yum install openssl-devel bzip2-devel expat-devel gdbm-devel readline-devel sqlite-devel
•到python官网找到下载路径, 用wget下载
wget https://www.python.org/ftp/python/3.6.4/python-3.6.4.tgz
•解压tgz包
tar -zxvf python-3.6.4.tgz
•把python移到/usr/local下面
mv python-3.6.4 /usr/local
•删除旧版本的python依赖
ll /usr/bin | grep python
rm -rf /usr/bin/python
•进入python目录
cd /usr/local/python-3.6.4/
•配置
./configure
•编译 make
make
•编译,安装
make install
•删除旧的软链接,创建新的软链接到最新的python
rm -rf /usr/bin/python
ln -s /usr/local/bin/python3.6 /usr/bin/python
python -v
上一篇: Python作用域详述
推荐阅读
-
centos7上编译安装php7以php-fpm方式连接apache
-
centos下GitLab+Jenkins持续集成环境搭建(安装jenkins)
-
centos7上mysql8.0rpm方式安装教程图解
-
Centos7安装和配置Mysql5.7
-
Centos7通过yum跟源码编译安装Nginx
-
Win8.1下安装Python3.6提示0x80240017错误的解决方法
-
CentOS7安装Tomcat 9并进行配置
-
一行命令安装docker和docker-compose(CentOS7)
-
Centos7.0安装ceph(JEWEL)及以上版本的实例解析
-
CentOS 7.x安装部署Memcached服务器的详细方法