Linux服务器上安装Python3的两种方式
作者:Minger~ 时间:2022-01-23 12:13:39
第一种方式
阿里云、百度云服务器可用!!!
yum install python3
第二种方式
1.下载python3.6.5的压缩包
wget http://cdn.npm.taobao.org/dist/python/3.6.5/Python-3.6.5.tgz
2.解压压缩包
tar -zxvf Python-3.6.5.tgz
3.安装
cd Python-3.6.5
yum install -y zlib*
yum install -y gcc
如果出现:
cd /etc/yum.repos.d
mv CentOS-Base.repo CentOS-Base.repo.backup
查看系统版本:
cat /etc/issue
选择合适版本的源:
http://mirrors.163.com/.help/centos.html
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-6.repo
yum clean all
yum makecache
然后直接:
yum install python3
然后依旧报错。。。。
原因在于CentOS6的版本不能直接从源安装python3,CentOS7可以!!!
总结
以上所述是小编给大家介绍的Linux服务器上安装Python3的两种方式网站的支持!
如果你觉得本文对你有帮助,欢迎转载,烦请注明出处,谢谢!
来源:https://blog.csdn.net/chen1415886044/article/details/103000827
标签:Linux,服务器,安装,Python3
![](/images/zang.png)
![](/images/jiucuo.png)
猜你喜欢
小小聊天室Python代码实现
2022-05-27 15:23:44
教你用python控制安卓手机
2023-11-10 10:13:39
![](https://img.aspxhome.com/file/2023/4/69554_0s.png)
ASP页面内VBScript和JScript的交互
2007-09-11 13:49:00
python实现上传样本到virustotal并查询扫描信息的方法
2023-06-30 19:59:45
在Python中利用pickle保存变量的实例
2021-05-04 04:25:50
![](https://img.aspxhome.com/file/2023/2/68882_0s.jpg)
Dreamweaver使用技巧之如何巧用DW4文件库更新网站
2010-10-20 20:07:00
![](https://img.aspxhome.com/file/UploadPic/20072/20072311301764s.gif)
windows下cx_Freeze生成Python可执行程序的详细步骤
2022-12-06 05:27:57
![](https://img.aspxhome.com/file/2023/2/76092_0s.png)
Python timer定时器两种常用方法解析
2023-07-21 19:20:56
python tkinter制作用户登录界面的简单实现
2021-01-07 06:00:09
![](https://img.aspxhome.com/file/2023/4/85344_0s.jpg)
交互设计的方法
2010-08-18 12:32:00
![](https://img.aspxhome.com/file/UploadPic/20108/18/01-52s.jpg)
Bootstrap图片轮播效果详解
2023-08-24 20:31:55
![](https://img.aspxhome.com/file/2023/1/56211_0s.jpg)
Python中使用PDB库调试程序
2022-02-24 11:25:49
python海龟绘图实例教程
2021-05-29 14:46:04
Python3.5局部变量与全局变量作用域实例分析
2023-05-20 23:18:28
python 合并多个excel中同名的sheet
2023-06-06 08:34:27
![](https://img.aspxhome.com/file/2023/3/102943_0s.png)
opencv-python 提取sift特征并匹配的实例
2022-01-25 03:43:18
个人微信公众号接入ChatGPT的教程分享
2023-04-08 00:34:02
python 批量将中文名转换为拼音
2023-06-14 21:16:22
![](https://img.aspxhome.com/file/2023/4/68354_0s.png)
Python中的字符串操作和编码Unicode详解
2021-02-24 18:37:11
Thinkphp5.0 框架的请求方式与响应方式分析
2023-11-15 00:07:09