Centos python安装

前端之家收集整理的这篇文章主要介绍了Centos python安装前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

<table class="text"><tr class="li1">
<td class="ln"><pre class="de1">1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49

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 原文链接:https://www.f2er.com/centos/411705.html

猜你在找的CentOS相关文章