Linux安装Python3.8.1的教程详解
作者:四海飞鹰 时间:2022-03-26 10:43:24
本例以Linux上安装Pyhton3.8版本为例进行说明
1、依赖包安装
yum -y install zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel readline-devel tk-devel gdbm-devel db4-devel libpcap-devel xz-devel libffi-devel
2、下载包:
https://www.python.org/ftp/python/3.8.1/
wget https://www.python.org/ftp/python/3.8.1/Python-3.8.1.tgz
3、解压:
tar -zxvf Python-3.8.1.tgz
4、安装:
cd Python-3.8.1
./configure --prefix=/usr/local/python3
make && make install
5、建立软连接
ln -s /usr/local/python3/bin/python3.8 /usr/bin/python3
ln -s /usr/local/python3/bin/pip3.8 /usr/bin/pip3
6、验证是否安装成功
执行python3命令
执行pip3命令
如果执行上面命令均得到如图结果,则说明安装成功。
总结
以上所述是小编给大家介绍的Linux安装Python3.8.1的教程详解,希望对大家有所帮助!
来源:https://www.jianshu.com/p/f3253a7d0ed0
标签:linux,安装,python3.8
![](/images/zang.png)
![](/images/jiucuo.png)
猜你喜欢
br玩转清除浮动
2007-05-11 16:52:00
python实现顺序表的简单代码
2022-01-10 05:03:20
![](https://img.aspxhome.com/file/2023/0/115140_0s.jpg)
用Python实现BP神经网络(附代码)
2023-11-24 17:20:11
![](https://img.aspxhome.com/file/2023/9/100259_0s.jpg)
深入解析Python中的变量和赋值运算符
2023-10-13 20:58:53
![](https://img.aspxhome.com/file/2023/9/93459_0s.jpg)
Django学习笔记之为Model添加Action
2021-04-09 16:32:26
python 下载文件的几种方式分享
2021-03-27 14:08:17
python实现中文分词FMM算法实例
2022-07-31 18:40:55
Python在Matplotlib图中显示中文字体的操作方法
2023-03-30 00:29:54
Kali Linux安装ipython2 和 ipython3的方法
2022-07-16 04:57:52
Python安装whl文件过程图解
2022-06-22 02:51:26
![](https://img.aspxhome.com/file/2023/7/121077_0s.png)
Python编程使用PyQt5制作动态钟表示例
2021-10-06 03:20:17
![](https://img.aspxhome.com/file/2023/6/78756_0s.gif)
在Python中使用PIL模块处理图像的教程
2023-09-03 17:34:39
![](https://img.aspxhome.com/file/2023/0/110270_0s.jpg)
Python列表删除元素del、pop()和remove()的区别小结
2021-12-02 07:32:41
python使用turtle库绘制树
2022-04-14 09:09:06
搞定web设计中网页路径问题
2007-09-22 08:52:00
使用Python完成15位18位身份证的互转功能
2021-11-30 03:04:30
![](https://img.aspxhome.com/file/2023/0/95260_0s.jpg)
Python设计模式之工厂方法模式实例详解
2021-02-26 05:40:59
![](https://img.aspxhome.com/file/2023/9/76129_0s.png)
python jieba库的基本使用
2022-10-15 23:01:16
sqlserver 巧妙的自关联运用
2012-07-21 14:55:12
使用Python横向合并excel文件的实例
2023-09-19 21:20:18
![](https://img.aspxhome.com/file/2023/7/87817_0s.jpg)