前言
python3应该是Python的趋势所在,当然目前争议也比较大,这篇随笔的主要目的是记录在centos6.7下搭建python3环境的过程
以及碰到的问题和解决过程。
另外,如果本机安装了python2,尽量不要管他,使用python3运行python脚本就好,因为可能有程序依赖目前的python2环境,
比如yum!!!!!
不要动现有的python2环境!
不要动现有的python2环境!
不要动现有的python2环境!
重要的使用说三遍!
安装python3.6
1、查看默认版本
查看当前CentOS-6.7系统默认的python版本
[hadoop@hadoop1 ~]$ python -V
Python 2.6.6
[hadoop@hadoop1 ~]$
2、安装依赖环境
此处需要使用root用户进行安装
[root@hadoop1 hadoop]# 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


1 [root@hadoop1 hadoop]# 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
2 已加载插件:fastestmirror, refresh-packagekit, security
3 设置安装进程
4 Determining fastest mirrors
5 * base: mirrors.neusoft.edu.cn
6 * extras: mirrors.neusoft.edu.cn
7 * updates: mirror.bit.edu.cn
8 base | 3.7 kB 00:00
9 extras | 3.4 kB 00:00
10 extras/primary_db | 30 kB 00:00
11 updates | 3.4 kB 00:00
12 updates/primary_db | 7.0 MB 00:01
13 解决依赖关系
14 --> 执行事务检查
15 ---> Package bzip2-devel.x86_64 0:1.0.5-7.el6_0 will be 安装
16 ---> Package db4-devel.x86_64 0:4.7.25-19.el6_6 will be 升级
17 ---> Package db4-devel.x86_64 0:4.7.25-22.el6 will be an update
18 --> 处理依赖关系 db4-cxx = 4.7.25-22.el6,它被软件包 db4-devel-4.7.25-22.el6.x86_64 需要
19 --> 处理依赖关系 db4 = 4.7.25-22.el6,它被软件包 db4-devel-4.7.25-22.el6.x86_64 需要
20 ---> Package gdbm-devel.x86_64 0:1.8.0-38.el6 will be 升级
21 ---> Package gdbm-devel.x86_64 0:1.8.0-39.el6 will be an update
22 --> 处理依赖关系 gdbm = 1.8.0-39.el6,它被软件包 gdbm-devel-1.8.0-39.el6.x86_64 需要
23 ---> Package libpcap-devel.x86_64 14:1.4.0-4.20130826git2dbcaa1.el6 will be 安装
24 ---> Package ncurses-devel.x86_64 0:5.7-4.20090207.el6 will be 安装
25 ---> Package openssl-devel.x86_64 0:1.0.1e-57.el6 will be 安装
26 --> 处理依赖关系 openssl = 1.0.1e-57.el6,它被软件包 openssl-devel-1.0.1e-57.el6.x86_64 需要
27 --> 处理依赖关系 krb5-devel,它被软件包 openssl-devel-1.0.1e-57.el6.x86_64 需要
28 ---> Package readline-devel.x86_64 0:6.0-4.el6 will be 安装
29 ---> Package sqlite-devel.x86_64 0:3.6.20-1.el6_7.2 will be 安装
30 --> 处理依赖关系 sqlite = 3.6.20-1.el6_7.2,它被软件包 sqlite-devel-3.6.20-1.el6_7.2.x86_64 需要
31 ---> Package tk-devel.x86_64 1:8.5.7-5.el6 will be 安装
32 --> 处理依赖关系 tk = 1:8.5.7-5.el6,它被软件包 1:tk-devel-8.5.7-5.el6.x86_64 需要
33 --> 处理依赖关系 tcl-devel = 1:8.5.7,它被软件包 1:tk-devel-8.5.7-5.el6.x86_64 需要
34 --> 处理依赖关系 libXft-devel,它被软件包 1:tk-devel-8.5.7-5.el6.x86_64 需要
35 --> 处理依赖关系 libX11-devel,它被软件包 1:tk-devel-8.5.7-5.el6.x86_64 需要
36 --> 处理依赖关系 libtk8.5.so()(64bit),它被软件包 1:tk-devel-8.5.7-5.el6.x86_64 需要
37 ---> Package xz-devel.x86_64 0:4.999.9-0.5.beta.20091007git.el6 will be 安装
38 ---> Package zlib-devel.x86_64 0:1.2.3-29.el6 will be 安装
39 --> 执行事务检查
40 ---> Package db4.x86_64 0:4.7.25-19.el6_6 will be 升级
41 --> 处理依赖关系 db4 = 4.7.25-19.el6_6,它被软件包 db4-utils-4.7.25-19.el6_6.x86_64 需要
42 ---> Package db4.x86_64 0:4.7.25-22.el6 will be an update
43 ---> Package db4-cxx.x86_64 0:4.7.25-19.el6_6 will be 升级
44 ---> Package db4-cxx.x86_64 0:4.7.25-22.el6 will be an update
45 ---> Package gdbm.x86_64 0:1.8.0-38.el6 will be 升级
46 ---> Package gdbm.x86_64 0:1.8.0-39.el6 will be an update
47 ---> Package krb5-devel.x86_64 0:1.10.3-65.el6 will be 安装
48 --> 处理依赖关系 libkadm5(x86-64) = 1.10.3-65.el6,它被软件包 krb5-devel-1.10.3-65.el6.x86_64 需要
49 --> 处理依赖关系 krb5-libs = 1.10.3-65.el6,它被软件包 krb5-devel-1.10.3-65.el6.x86_64 需要
50 --> 处理依赖关系 libselinux-devel,它被软件包 krb5-devel-1.10.3-65.el6.x86_64 需要
51 --> 处理依赖关系 libcom_err-devel,它被软件包 krb5-devel-1.10.3-65.el6.x86_64 需要
52 --> 处理依赖关系 keyutils-libs-devel,它被软件包 krb5-devel-1.10.3-65.el6.x86_64 需要
53 ---> Package libX11-devel.x86_64 0:1.6.4-3.el6 will be 安装
54 --> 处理依赖关系 libX11 = 1.6.4-3.el6,它被软件包 libX11-devel-1.6.4-3.el6.x86_64 需要
55 --> 处理依赖关系 pkgconfig(xcb) >= 1.11.1,它被软件包 libX11-devel-1.6.4-3.el6.x86_64 需要
56 --> 处理依赖关系 pkgconfig(xproto),它被软件包 libX11-devel-1.6.4-3.el6.x86_64 需要
57 --> 处理依赖关系 pkgconfig(xcb),它被软件包 libX11-devel-1.6.4-3.el6.x86_64 需要
58 --> 处理依赖关系 pkgconfig(kbproto),它被软件包 libX11-devel-1.6.4-3.el6.x86_64 需要
59 ---> Package libXft-devel.x86_64 0:2.3.2-1.el6 will be 安装
60 --> 处理依赖关系 libXft = 2.3.2-1.el6,它被软件包 libXft-devel-2.3.2-1.el6.x86_64 需要
61 --> 处理依赖关系 pkgconfig(xrender),它被软件包 libXft-devel-2.3.2-1.el6.x86_64 需要
62 --> 处理依赖关系 pkgconfig(freetype2),它被软件包 libXft-devel-2.3.2-1.el6.x86_64 需要
63 --> 处理依赖关系 pkgconfig(fontconfig),它被软件包 libXft-devel-2.3.2-1.el6.x86_64 需要
64 ---> Package openssl.x86_64 0:1.0.1e-42.el6 will be 升级
65 ---> Package openssl.x86_64 0:1.0.1e-57.el6 will be an update
66 ---> Package sqlite.x86_64 0:3.6.20-1.el6 will be 升级
67 ---> Package sqlite.x86_64 0:3.6.20-1.el6_7.2 will be an update
68 ---> Package tcl-devel.x86_64 1:8.5.7-6.el6 will be 安装
69 --> 处理依赖关系 tcl = 1:8.5.7-6.el6,它被软件包 1:tcl-devel-8.5.7-6.el6.x86_64 需要
70 --> 处理依赖关系 libtcl8.5.so()(64bit),它被软件包 1:tcl-devel-8.5.7-6.el6.x86_64 需要
71 ---> Package tk.x86_64 1:8.5.7-5.el6 will be 安装
72 --> 执行事务检查
73 ---> Package db4-utils.x86_64 0:4.7.25-19.el6_6 will be 升级
74 ---> Package db4-utils.x86_64 0:4.7.25-22.el6 will be an update
75 ---> Package fontconfig-devel.x86_64 0:2.8.0-5.el6 will be 安装
76 ---> Package freetype-devel.x86_64 0:2.3.11-17.el6 will be 安装
77 --> 处理依赖关系 freetype = 2.3.11-17.el6,它被软件包 freetype-devel-2.3.11-17.el6.x86_64 需要
78 ---> Package keyutils-libs-devel.x86_64 0:1.4-5.el6 will be 安装
79 ---> Package krb5-libs.x86_64 0:1.10.3-42.el6 will be 升级
80 --> 处理依赖关系 krb5-libs = 1.10.3-42.el6,它被软件包 krb5-workstation-1.10.3-42.el6.x86_64 需要
81 ---> Package krb5-libs.x86_64 0:1.10.3-65.el6 will be an update
82 ---> Package libX11.x86_64 0:1.6.0-6.el6 will be 升级
83 ---> Package libX11.x86_64 0:1.6.4-3.el6 will be an update
84 --> 处理依赖关系 libX11-common = 1.6.4-3.el6,它被软件包 libX11-1.6.4-3.el6.x86_64 需要
85 ---> Package libXft.x86_64 0:2.3.1-2.el6 will be 升级
86 ---> Package libXft.x86_64 0:2.3.2-1.el6 will be an update
87 ---> Package libXrender-devel.x86_64 0:0.9.10-1.el6 will be 安装
88 --> 处理依赖关系 libXrender = 0.9.10-1.el6,它被软件包 libXrender-devel-0.9.10-1.el6.x86_64 需要
89 ---> Package libcom_err-devel.x86_64 0:1.41.12-23.el6 will be 安装
90 --> 处理依赖关系 libcom_err = 1.41.12-23.el6,它被软件包 libcom_err-devel-1.41.12-23.el6.x86_64 需要
91 ---> Package libkadm5.x86_64 0:1.10.3-65.el6 will be 安装
92 ---> Package libselinux-devel.x86_64 0:2.0.94-7.el6 will be 安装
93 --> 处理依赖关系 libselinux = 2.0.94-7.el6,它被软件包 libselinux-devel-2.0.94-7.el6.x86_64 需要
94 --> 处理依赖关系 libsepol-devel >= 2.0.32-1,它被软件包 libselinux-devel-2.0.94-7.el6.x86_64 需要
95 --> 处理依赖关系 pkgconfig(libsepol),它被软件包 libselinux-devel-2.0.94-7.el6.x86_64 需要
96 ---> Package libxcb-devel.x86_64 0:1.12-4.el6 will be 安装
97 --> 处理依赖关系 libxcb = 1.12-4.el6,它被软件包 libxcb-devel-1.12-4.el6.x86_64 需要
98 --> 处理依赖关系 pkgconfig(xau) >= 0.99.2,它被软件包 libxcb-devel-1.12-4.el6.x86_64 需要
99 --> 处理依赖关系 libxcb-xkb.so.1()(64bit),它被软件包 libxcb-devel-1.12-4.el6.x86_64 需要
100 --> 处理依赖关系 libxcb-xinput.so.0()(64bit),它被软件包 libxcb-devel-1.12-4.el6.x86_64 需要
101 --> 处理依赖关系 libxcb-sync.so.1()(64bit),它被软件包 libxcb-devel-1.12-4.el6.x86_64 需要
102 --> 处理依赖关系 libxcb-present.so.0()(64bit),它被软件包 libxcb-devel-1.12-4.el6.x86_64 需要
103 --> 处理依赖关系 libxcb-dri3.so.0()(64bit),它被软件包 libxcb-devel-1.12-4.el6.x86_64 需要
104 ---> Package tcl.x86_64 1:8.5.7-6.el6 will be 安装
105 ---> Package xorg-x11-proto-devel.noarch 0:7.7-14.el6 will be 安装
106 --> 执行事务检查
107 ---> Package freetype.x86_64 0:2.3.11-15.el6_6.1 will be 升级
108 ---> Package freetype.x86_64 0:2.3.11-17.el6 will be an update
109 ---> Package krb5-workstation.x86_64 0:1.10.3-42.el6 will be 升级
110 ---> Package krb5-workstation.x86_64 0:1.10.3-65.el6 will be an update
111 ---> Package libX11-common.noarch 0:1.6.0-6.el6 will be 升级
112 ---> Package libX11-common.noarch 0:1.6.4-3.el6 will be an update
113 ---> Package libXau-devel.x86_64 0:1.0.6-4.el6 will be 安装
114 ---> Package libXrender.x86_64 0:0.9.8-2.1.el6 will be 升级
115 ---> Package libXrender.x86_64 0:0.9.10-1.el6 will be an update
116 ---> Package libcom_err.x86_64 0:1.41.12-22.el6 will be 升级
117 --> 处理依赖关系 libcom_err = 1.41.12-22.el6,它被软件包 libss-1.41.12-22.el6.x86_64 需要
118 --> 处理依赖关系 libcom_err = 1.41.12-22.el6,它被软件包 e2fsprogs-libs-1.41.12-22.el6.x86_64 需要
119 --> 处理依赖关系 libcom_err = 1.41.12-22.el6,它被软件包 e2fsprogs-1.41.12-22.el6.x86_64 需要
120 ---> Package libcom_err.x86_64 0:1.41.12-23.el6 will be an update
121 ---> Package libselinux.x86_64 0:2.0.94-5.8.el6 will be 升级
122 --> 处理依赖关系 libselinux = 2.0.94-5.8.el6,它被软件包 libselinux-utils-2.0.94-5.8.el6.x86_64 需要
123 --> 处理依赖关系 libselinux = 2.0.94-5.8.el6,它被软件包 libselinux-python-2.0.94-5.8.el6.x86_64 需要
124 ---> Package libselinux.x86_64 0:2.0.94-7.el6 will be an update
125 ---> Package libsepol-devel.x86_64 0:2.0.41-4.el6 will be 安装
126 ---> Package libxcb.x86_64 0:1.9.1-3.el6 will be 升级
127 ---> Package libxcb.x86_64 0:1.12-4.el6 will be an update
128 --> 执行事务检查
129 ---> Package e2fsprogs.x86_64 0:1.41.12-22.el6 will be 升级
130 ---> Package e2fsprogs.x86_64 0:1.41.12-23.el6 will be an update
131 ---> Package e2fsprogs-libs.x86_64 0:1.41.12-22.el6 will be 升级
132 ---> Package e2fsprogs-libs.x86_64 0:1.41.12-23.el6 will be an update
133 ---> Package libselinux-python.x86_64 0:2.0.94-5.8.el6 will be 升级
134 ---> Package libselinux-python.x86_64 0:2.0.94-7.el6 will be an update
135 ---> Package libselinux-utils.x86_64 0:2.0.94-5.8.el6 will be 升级
136 ---> Package libselinux-utils.x86_64 0:2.0.94-7.el6 will be an update
137 ---> Package libss.x86_64 0:1.41.12-22.el6 will be 升级
138 ---> Package libss.x86_64 0:1.41.12-23.el6 will be an update
139 --> 完成依赖关系计算
140
141 依赖关系解决
142
143 ================================================================================================================
144 软件包 架构 版本 仓库 大小
145 ================================================================================================================
146 正在安装:
147 bzip2-devel x86_64 1.0.5-7.el6_0 base 250 k
148 libpcap-devel x86_64 14:1.4.0-4.20130826git2dbcaa1.el6 base 114 k
149 ncurses-devel x86_64 5.7-4.20090207.el6 base 641 k
150 openssl-devel x86_64 1.0.1e-57.el6 base 1.2 M
151 readline-devel x86_64 6.0-4.el6 base 134 k
152 sqlite-devel x86_64 3.6.20-1.el6_7.2 base 81 k
153 tk-devel x86_64 1:8.5.7-5.el6 base 496 k
154 xz-devel x86_64 4.999.9-0.5.beta.20091007git.el6 base 40 k
155 zlib-devel x86_64 1.2.3-29.el6 base 44 k
156 正在升级:
157 db4-devel x86_64 4.7.25-22.el6 base 6.6 M
158 gdbm-devel x86_64 1.8.0-39.el6 base 26 k
159 为依赖而安装:
160 fontconfig-devel x86_64 2.8.0-5.el6 base 209 k
161 freetype-devel x86_64 2.3.11-17.el6 base 365 k
162 keyutils-libs-devel x86_64 1.4-5.el6 base 29 k
163 krb5-devel x86_64 1.10.3-65.el6 base 504 k
164 libX11-devel x86_64 1.6.4-3.el6 base 983 k
165 libXau-devel x86_64 1.0.6-4.el6 base 14 k
166 libXft-devel x86_64 2.3.2-1.el6 base 19 k
167 libXrender-devel x86_64 0.9.10-1.el6 base 17 k
168 libcom_err-devel x86_64 1.41.12-23.el6 base 33 k
169 libkadm5 x86_64 1.10.3-65.el6 base 143 k
170 libselinux-devel x86_64 2.0.94-7.el6 base 137 k
171 libsepol-devel x86_64 2.0.41-4.el6 base 64 k
172 libxcb-devel x86_64 1.12-4.el6 base 1.1 M
173 tcl x86_64 1:8.5.7-6.el6 base 1.9 M
174 tcl-devel x86_64 1:8.5.7-6.el6 base 162 k
175 tk x86_64 1:8.5.7-5.el6 base 1.4 M
176 xorg-x11-proto-devel noarch 7.7-14.el6 base 288 k
177 为依赖而更新:
178 db4 x86_64 4.7.25-22.el6 base 564 k
179 db4-cxx x86_64 4.7.25-22.el6 base 589 k
180 db4-utils x86_64 4.7.25-22.el6 base 131 k
181 e2fsprogs x86_64 1.41.12-23.el6 base 554 k
182 e2fsprogs-libs x86_64 1.41.12-23.el6 base 121 k
183 freetype x86_64 2.3.11-17.el6 base 361 k
184 gdbm x86_64 1.8.0-39.el6 base 29 k
185 krb5-libs x86_64 1.10.3-65.el6 base 675 k
186 krb5-workstation x86_64 1.10.3-65.el6 base 814 k
187 libX11 x86_64 1.6.4-3.el6 base 587 k
188 libX11-common noarch 1.6.4-3.el6 base 171 k
189 libXft x86_64 2.3.2-1.el6 base 55 k
190 libXrender x86_64 0.9.10-1.el6 base 24 k
191 libcom_err x86_64 1.41.12-23.el6 base 38 k
192 libselinux x86_64 2.0.94-7.el6 base 109 k
193 libselinux-python x86_64 2.0.94-7.el6 base 203 k
194 libselinux-utils x86_64 2.0.94-7.el6 base 82 k
195 libss x86_64 1.41.12-23.el6 base 42 k
196 libxcb x86_64 1.12-4.el6 base 180 k
197 openssl x86_64 1.0.1e-57.el6 base 1.5 M
198 sqlite x86_64 3.6.20-1.el6_7.2 base 300 k
199
200 事务概要
201 ================================================================================================================
202 Install 26 Package(s)
203 Upgrade 23 Package(s)
204
205 总下载量:24 M
206 下载软件包:
207 (1/49): bzip2-devel-1.0.5-7.el6_0.x86_64.rpm | 250 kB 00:00
208 (2/49): db4-4.7.25-22.el6.x86_64.rpm | 564 kB 00:00
209 (3/49): db4-cxx-4.7.25-22.el6.x86_64.rpm | 589 kB 00:01
210 (4/49): db4-devel-4.7.25-22.el6.x86_64.rpm | 6.6 MB 00:08
211 (5/49): db4-utils-4.7.25-22.el6.x86_64.rpm | 131 kB 00:01
212 (6/49): e2fsprogs-1.41.12-23.el6.x86_64.rpm | 554 kB 00:00
213 (7/49): e2fsprogs-libs-1.41.12-23.el6.x86_64.rpm | 121 kB 00:03
214 (8/49): fontconfig-devel-2.8.0-5.el6.x86_64.rpm | 209 kB 00:00
215 (9/49): freetype-2.3.11-17.el6.x86_64.rpm | 361 kB 00:04
216 (10/49): freetype-devel-2.3.11-17.el6.x86_64.rpm | 365 kB 00:00
217 (11/49): gdbm-1.8.0-39.el6.x86_64.rpm | 29 kB 00:00
218 (12/49): gdbm-devel-1.8.0-39.el6.x86_64.rpm | 26 kB 00:00
219 (13/49): keyutils-libs-devel-1.4-5.el6.x86_64.rpm | 29 kB 00:00
220 (14/49): krb5-devel-1.10.3-65.el6.x86_64.rpm | 504 kB 00:01
221 (15/49): krb5-libs-1.10.3-65.el6.x86_64.rpm | 675 kB 00:00
222 (16/49): krb5-workstation-1.10.3-65.el6.x86_64.rpm | 814 kB 00:01
223 (17/49): libX11-1.6.4-3.el6.x86_64.rpm | 587 kB 00:00
224 (18/49): libX11-common-1.6.4-3.el6.noarch.rpm | 171 kB 00:00
225 (19/49): libX11-devel-1.6.4-3.el6.x86_64.rpm | 983 kB 00:01
226 (20/49): libXau-devel-1.0.6-4.el6.x86_64.rpm | 14 kB 00:00
227 (21/49): libXft-2.3.2-1.el6.x86_64.rpm | 55 kB 00:00
228 (22/49): libXft-devel-2.3.2-1.el6.x86_64.rpm | 19 kB 00:00
229 (23/49): libXrender-0.9.10-1.el6.x86_64.rpm | 24 kB 00:00
230 (24/49): libXrender-devel-0.9.10-1.el6.x86_64.rpm | 17 kB 00:00
231 (25/49): libcom_err-1.41.12-23.el6.x86_64.rpm | 38 kB 00:00
232 (26/49): libcom_err-devel-1.41.12-23.el6.x86_64.rpm | 33 kB 00:00
233 (27/49): libkadm5-1.10.3-65.el6.x86_64.rpm | 143 kB 00:00
234 (28/49): libpcap-devel-1.4.0-4.20130826git2dbcaa1.el6.x86_64.rpm | 114 kB 00:00
235 (29/49): libselinux-2.0.94-7.el6.x86_64.rpm | 109 kB 00:00
236 (30/49): libselinux-devel-2.0.94-7.el6.x86_64.rpm | 137 kB 00:00
237 (31/49): libselinux-python-2.0.94-7.el6.x86_64.rpm | 203 kB 00:00
238 (32/49): libselinux-utils-2.0.94-7.el6.x86_64.rpm | 82 kB 00:00
239 (33/49): libsepol-devel-2.0.41-4.el6.x86_64.rpm | 64 kB 00:00
240 (34/49): libss-1.41.12-23.el6.x86_64.rpm | 42 kB 00:00
241 (35/49): libxcb-1.12-4.el6.x86_64.rpm | 180 kB 00:00
242 (36/49): libxcb-devel-1.12-4.el6.x86_64.rpm | 1.1 MB 00:01
243 (37/49): ncurses-devel-5.7-4.20090207.el6.x86_64.rpm | 641 kB 00:43
244 (38/49): openssl-1.0.1e-57.el6.x86_64.rpm | 1.5 MB 00:01
245 (39/49): openssl-devel-1.0.1e-57.el6.x86_64.rpm | 1.2 MB 00:01
246 (40/49): readline-devel-6.0-4.el6.x86_64.rpm | 134 kB 00:00
247 (41/49): sqlite-3.6.20-1.el6_7.2.x86_64.rpm | 300 kB 00:00
248 (42/49): sqlite-devel-3.6.20-1.el6_7.2.x86_64.rpm | 81 kB 00:00
249 (43/49): tcl-8.5.7-6.el6.x86_64.rpm | 1.9 MB 00:50
250 (44/49): tcl-devel-8.5.7-6.el6.x86_64.rpm | 162 kB 00:00
251 (45/49): tk-8.5.7-5.el6.x86_64.rpm | 1.4 MB 00:01
252 (46/49): tk-devel-8.5.7-5.el6.x86_64.rpm | 496 kB 00:00
253 (47/49): xorg-x11-proto-devel-7.7-14.el6.noarch.rpm | 288 kB 00:00
254 (48/49): xz-devel-4.999.9-0.5.beta.20091007git.el6.x86_64.rpm | 40 kB 00:00
255 (49/49): zlib-devel-1.2.3-29.el6.x86_64.rpm | 44 kB 00:00
256 ----------------------------------------------------------------------------------------------------------------
257 总计 180 kB/s | 24 MB 02:15
258 warning: rpmts_HdrFromFdno: Header V3 RSA/SHA1 Signature, key ID c105b9de: NOKEY
259 Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
260 Importing GPG key 0xC105B9DE:
261 Userid : CentOS-6 Key (CentOS 6 Official Signing Key) <centos-6-key@centos.org>
262 Package: centos-release-6-7.el6.centos.12.3.x86_64 (@anaconda-CentOS-201508042137.x86_64/6.7)
263 From : /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
264 运行 rpm_check_debug
265 执行事务测试
266 事务测试成功
267 执行事务
268 正在升级 : libcom_err-1.41.12-23.el6.x86_64 1/72
269 正在升级 : libselinux-2.0.94-7.el6.x86_64 2/72
270 正在升级 : krb5-libs-1.10.3-65.el6.x86_64 3/72
271 正在安装 : xorg-x11-proto-devel-7.7-14.el6.noarch 4/72
272 正在升级 : freetype-2.3.11-17.el6.x86_64 5/72
273 正在安装 : libkadm5-1.10.3-65.el6.x86_64 6/72
274 正在升级 : libss-1.41.12-23.el6.x86_64 7/72
275 正在安装 : 1:tcl-8.5.7-6.el6.x86_64 8/72
276 正在升级 : db4-4.7.25-22.el6.x86_64 9/72
277 正在升级 : libxcb-1.12-4.el6.x86_64 10/72
278 正在安装 : zlib-devel-1.2.3-29.el6.x86_64 11/72
279 正在安装 : freetype-devel-2.3.11-17.el6.x86_64 12/72
280 正在安装 : fontconfig-devel-2.8.0-5.el6.x86_64 13/72
281 正在安装 : 1:tcl-devel-8.5.7-6.el6.x86_64 14/72
282 正在安装 : libXau-devel-1.0.6-4.el6.x86_64 15/72
283 正在安装 : libxcb-devel-1.12-4.el6.x86_64 16/72
284 正在升级 : openssl-1.0.1e-57.el6.x86_64 17/72
285 正在升级 : e2fsprogs-libs-1.41.12-23.el6.x86_64 18/72
286 正在安装 : libcom_err-devel-1.41.12-23.el6.x86_64 19/72
287 正在安装 : libsepol-devel-2.0.41-4.el6.x86_64 20/72
288 正在安装 : libselinux-devel-2.0.94-7.el6.x86_64 21/72
289 正在升级 : db4-cxx-4.7.25-22.el6.x86_64 22/72
290 正在安装 : ncurses-devel-5.7-4.20090207.el6.x86_64 23/72
291 正在升级 : libX11-common-1.6.4-3.el6.noarch 24/72
292 正在升级 : libX11-1.6.4-3.el6.x86_64 25/72
293 正在升级 : libXrender-0.9.10-1.el6.x86_64 26/72
294 正在升级 : libXft-2.3.2-1.el6.x86_64 27/72
295 正在安装 : libX11-devel-1.6.4-3.el6.x86_64 28/72
296 正在安装 : libXrender-devel-0.9.10-1.el6.x86_64 29/72
297 正在安装 : libXft-devel-2.3.2-1.el6.x86_64 30/72
298 正在安装 : 1:tk-8.5.7-5.el6.x86_64 31/72
299 正在升级 : sqlite-3.6.20-1.el6_7.2.x86_64 32/72
300 正在安装 : keyutils-libs-devel-1.4-5.el6.x86_64 33/72
301 正在安装 : krb5-devel-1.10.3-65.el6.x86_64 34/72
302 正在升级 : gdbm-1.8.0-39.el6.x86_64 35/72
303 正在升级 : gdbm-devel-1.8.0-39.el6.x86_64 36/72
304 正在安装 : openssl-devel-1.0.1e-57.el6.x86_64 37/72
305 正在安装 : sqlite-devel-3.6.20-1.el6_7.2.x86_64 38/72
306 正在安装 : 1:tk-devel-8.5.7-5.el6.x86_64 39/72
307 正在安装 : readline-devel-6.0-4.el6.x86_64 40/72
308 正在升级 : db4-devel-4.7.25-22.el6.x86_64 41/72
309 正在升级 : e2fsprogs-1.41.12-23.el6.x86_64 42/72
310 正在升级 : db4-utils-4.7.25-22.el6.x86_64 43/72
311 正在升级 : krb5-workstation-1.10.3-65.el6.x86_64 44/72
312 正在升级 : libselinux-python-2.0.94-7.el6.x86_64 45/72
313 正在升级 : libselinux-utils-2.0.94-7.el6.x86_64 46/72
314 正在安装 : 14:libpcap-devel-1.4.0-4.20130826git2dbcaa1.el6.x86_64 47/72
315 正在安装 : xz-devel-4.999.9-0.5.beta.20091007git.el6.x86_64 48/72
316 正在安装 : bzip2-devel-1.0.5-7.el6_0.x86_64 49/72
317 清理 : krb5-workstation-1.10.3-42.el6.x86_64 50/72
318 清理 : db4-devel-4.7.25-19.el6_6.x86_64 51/72
319 清理 : e2fsprogs-1.41.12-22.el6.x86_64 52/72
320 清理 : libXft-2.3.1-2.el6.x86_64 53/72
321 清理 : gdbm-devel-1.8.0-38.el6.x86_64 54/72
322 清理 : openssl-1.0.1e-42.el6.x86_64 55/72
323 清理 : krb5-libs-1.10.3-42.el6.x86_64 56/72
324 清理 : libXrender-0.9.8-2.1.el6.x86_64 57/72
325 清理 : libX11-1.6.0-6.el6.x86_64 58/72
326 清理 : e2fsprogs-libs-1.41.12-22.el6.x86_64 59/72
327 清理 : libss-1.41.12-22.el6.x86_64 60/72
328 清理 : libselinux-utils-2.0.94-5.8.el6.x86_64 61/72
329 清理 : libselinux-python-2.0.94-5.8.el6.x86_64 62/72
330 清理 : db4-utils-4.7.25-19.el6_6.x86_64 63/72
331 清理 : libX11-common-1.6.0-6.el6.noarch 64/72
332 清理 : db4-4.7.25-19.el6_6.x86_64 65/72
333 清理 : libselinux-2.0.94-5.8.el6.x86_64 66/72
334 清理 : libcom_err-1.41.12-22.el6.x86_64 67/72
335 清理 : libxcb-1.9.1-3.el6.x86_64 68/72
336 清理 : gdbm-1.8.0-38.el6.x86_64 69/72
337 清理 : freetype-2.3.11-15.el6_6.1.x86_64 70/72
338 清理 : db4-cxx-4.7.25-19.el6_6.x86_64 71/72
339 清理 : sqlite-3.6.20-1.el6.x86_64 72/72
340 Verifying : readline-devel-6.0-4.el6.x86_64 1/72
341 Verifying : libXft-devel-2.3.2-1.el6.x86_64 2/72
342 Verifying : libX11-devel-1.6.4-3.el6.x86_64 3/72
343 Verifying : e2fsprogs-1.41.12-23.el6.x86_64 4/72
344 Verifying : libX11-1.6.4-3.el6.x86_64 5/72
345 Verifying : krb5-devel-1.10.3-65.el6.x86_64 6/72
346 Verifying : krb5-libs-1.10.3-65.el6.x86_64 7/72
347 Verifying : libXft-2.3.2-1.el6.x86_64 8/72
348 Verifying : e2fsprogs-libs-1.41.12-23.el6.x86_64 9/72
349 Verifying : gdbm-1.8.0-39.el6.x86_64 10/72
350 Verifying : krb5-workstation-1.10.3-65.el6.x86_64 11/72
351 Verifying : freetype-devel-2.3.11-17.el6.x86_64 12/72
352 Verifying : bzip2-devel-1.0.5-7.el6_0.x86_64 13/72
353 Verifying : libss-1.41.12-23.el6.x86_64 14/72
354 Verifying : libXrender-0.9.10-1.el6.x86_64 15/72
355 Verifying : keyutils-libs-devel-1.4-5.el6.x86_64 16/72
356 Verifying : libselinux-2.0.94-7.el6.x86_64 17/72
357 Verifying : libxcb-devel-1.12-4.el6.x86_64 18/72
358 Verifying : zlib-devel-1.2.3-29.el6.x86_64 19/72
359 Verifying : sqlite-3.6.20-1.el6_7.2.x86_64 20/72
360 Verifying : libX11-common-1.6.4-3.el6.noarch 21/72
361 Verifying : ncurses-devel-5.7-4.20090207.el6.x86_64 22/72
362 Verifying : gdbm-devel-1.8.0-39.el6.x86_64 23/72
363 Verifying : openssl-devel-1.0.1e-57.el6.x86_64 24/72
364 Verifying : libcom_err-1.41.12-23.el6.x86_64 25/72
365 Verifying : 1:tk-devel-8.5.7-5.el6.x86_64 26/72
366 Verifying : libxcb-1.12-4.el6.x86_64 27/72
367 Verifying : db4-cxx-4.7.25-22.el6.x86_64 28/72
368 Verifying : xz-devel-4.999.9-0.5.beta.20091007git.el6.x86_64 29/72
369 Verifying : db4-4.7.25-22.el6.x86_64 30/72
370 Verifying : db4-devel-4.7.25-22.el6.x86_64 31/72
371 Verifying : xorg-x11-proto-devel-7.7-14.el6.noarch 32/72
372 Verifying : freetype-2.3.11-17.el6.x86_64 33/72
373 Verifying : db4-utils-4.7.25-22.el6.x86_64 34/72
374 Verifying : 14:libpcap-devel-1.4.0-4.20130826git2dbcaa1.el6.x86_64 35/72
375 Verifying : libselinux-python-2.0.94-7.el6.x86_64 36/72
376 Verifying : sqlite-devel-3.6.20-1.el6_7.2.x86_64 37/72
377 Verifying : libsepol-devel-2.0.41-4.el6.x86_64 38/72
378 Verifying : fontconfig-devel-2.8.0-5.el6.x86_64 39/72
379 Verifying : libselinux-utils-2.0.94-7.el6.x86_64 40/72
380 Verifying : openssl-1.0.1e-57.el6.x86_64 41/72
381 Verifying : libkadm5-1.10.3-65.el6.x86_64 42/72
382 Verifying : libcom_err-devel-1.41.12-23.el6.x86_64 43/72
383 Verifying : 1:tcl-8.5.7-6.el6.x86_64 44/72
384 Verifying : 1:tcl-devel-8.5.7-6.el6.x86_64 45/72
385 Verifying : libselinux-devel-2.0.94-7.el6.x86_64 46/72
386 Verifying : 1:tk-8.5.7-5.el6.x86_64 47/72
387 Verifying : libXrender-devel-0.9.10-1.el6.x86_64 48/72
388 Verifying : libXau-devel-1.0.6-4.el6.x86_64 49/72
389 Verifying : gdbm-devel-1.8.0-38.el6.x86_64 50/72
390 Verifying : db4-4.7.25-19.el6_6.x86_64 51/72
391 Verifying : db4-utils-4.7.25-19.el6_6.x86_64 52/72
392 Verifying : gdbm-1.8.0-38.el6.x86_64 53/72
393 Verifying : libcom_err-1.41.12-22.el6.x86_64 54/72
394 Verifying : libxcb-1.9.1-3.el6.x86_64 55/72
395 Verifying : e2fsprogs-1.41.12-22.el6.x86_64 56/72
396 Verifying : libselinux-utils-2.0.94-5.8.el6.x86_64 57/72
397 Verifying : libX11-1.6.0-6.el6.x86_64 58/72
398 Verifying : freetype-2.3.11-15.el6_6.1.x86_64 59/72
399 Verifying : openssl-1.0.1e-42.el6.x86_64 60/72
400 Verifying : libXft-2.3.1-2.el6.x86_64 61/72
401 Verifying : db4-cxx-4.7.25-19.el6_6.x86_64 62/72
402 Verifying : krb5-workstation-1.10.3-42.el6.x86_64 63/72
403 Verifying : libss-1.41.12-22.el6.x86_64 64/72
404 Verifying : krb5-libs-1.10.3-42.el6.x86_64 65/72
405 Verifying : libselinux-2.0.94-5.8.el6.x86_64 66/72
406 Verifying : libXrender-0.9.8-2.1.el6.x86_64 67/72
407 Verifying : libX11-common-1.6.0-6.el6.noarch 68/72
408 Verifying : libselinux-python-2.0.94-5.8.el6.x86_64 69/72
409 Verifying : e2fsprogs-libs-1.41.12-22.el6.x86_64 70/72
410 Verifying : sqlite-3.6.20-1.el6.x86_64 71/72
411 Verifying : db4-devel-4.7.25-19.el6_6.x86_64 72/72
412
413 已安装:
414 bzip2-devel.x86_64 0:1.0.5-7.el6_0 libpcap-devel.x86_64 14:1.4.0-4.20130826git2dbcaa1.el6
415 ncurses-devel.x86_64 0:5.7-4.20090207.el6 openssl-devel.x86_64 0:1.0.1e-57.el6
416 readline-devel.x86_64 0:6.0-4.el6 sqlite-devel.x86_64 0:3.6.20-1.el6_7.2
417 tk-devel.x86_64 1:8.5.7-5.el6 xz-devel.x86_64 0:4.999.9-0.5.beta.20091007git.el6
418 zlib-devel.x86_64 0:1.2.3-29.el6
419
420 作为依赖被安装:
421 fontconfig-devel.x86_64 0:2.8.0-5.el6 freetype-devel.x86_64 0:2.3.11-17.el6
422 keyutils-libs-devel.x86_64 0:1.4-5.el6 krb5-devel.x86_64 0:1.10.3-65.el6
423 libX11-devel.x86_64 0:1.6.4-3.el6 libXau-devel.x86_64 0:1.0.6-4.el6
424 libXft-devel.x86_64 0:2.3.2-1.el6 libXrender-devel.x86_64 0:0.9.10-1.el6
425 libcom_err-devel.x86_64 0:1.41.12-23.el6 libkadm5.x86_64 0:1.10.3-65.el6
426 libselinux-devel.x86_64 0:2.0.94-7.el6 libsepol-devel.x86_64 0:2.0.41-4.el6
427 libxcb-devel.x86_64 0:1.12-4.el6 tcl.x86_64 1:8.5.7-6.el6
428 tcl-devel.x86_64 1:8.5.7-6.el6 tk.x86_64 1:8.5.7-5.el6
429 xorg-x11-proto-devel.noarch 0:7.7-14.el6
430
431 更新完毕:
432 db4-devel.x86_64 0:4.7.25-22.el6 gdbm-devel.x86_64 0:1.8.0-39.el6
433
434 作为依赖被升级:
435 db4.x86_64 0:4.7.25-22.el6 db4-cxx.x86_64 0:4.7.25-22.el6
436 db4-utils.x86_64 0:4.7.25-22.el6 e2fsprogs.x86_64 0:1.41.12-23.el6
437 e2fsprogs-libs.x86_64 0:1.41.12-23.el6 freetype.x86_64 0:2.3.11-17.el6
438 gdbm.x86_64 0:1.8.0-39.el6 krb5-libs.x86_64 0:1.10.3-65.el6
439 krb5-workstation.x86_64 0:1.10.3-65.el6 libX11.x86_64 0:1.6.4-3.el6
440 libX11-common.noarch 0:1.6.4-3.el6 libXft.x86_64 0:2.3.2-1.el6
441 libXrender.x86_64 0:0.9.10-1.el6 libcom_err.x86_64 0:1.41.12-23.el6
442 libselinux.x86_64 0:2.0.94-7.el6 libselinux-python.x86_64 0:2.0.94-7.el6
443 libselinux-utils.x86_64 0:2.0.94-7.el6 libss.x86_64 0:1.41.12-23.el6
444 libxcb.x86_64 0:1.12-4.el6 openssl.x86_64 0:1.0.1e-57.el6
445 sqlite.x86_64 0:3.6.20-1.el6_7.2
446
447 完毕!
448 [root@hadoop1 hadoop]#
3、下载Python3安装包
https://www.python.org
从官网下载,下载的版本是Python-3.6.4.tgz
4、安装python3
个人习惯安装在/usr/local/python3(具体安装位置看个人喜好)
创建目录:
[root@hadoop1 bin]# mkdir -p /usr/local/python3
[root@hadoop1 bin]#
上传并解压安装包
[root@hadoop1 soft]# ls
Python-3.6.4.tgz
[root@hadoop1 soft]# tar -zxvf Python-3.6.4.tgz -C /usr/local/python3/
5、进入解压后的目录,添加配置
[root@hadoop1 soft]# cd /usr/local/python3/
[root@hadoop1 python3]# ls
Python-3.6.4
[root@hadoop1 python3]# cd Python-3.6.4/
[root@hadoop1 Python-3.6.4]# ./configure --prefix=/usr/local/python3
执行过程中报错
[root@hadoop1 Python-3.6.4]# ./configure --prefix=/usr/local/python3
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking for python3.6... no
checking for python3... no
checking for python... python
checking for --enable-universalsdk... no
checking for --with-universal-archs... no
checking MACHDEP... linux
checking for --without-gcc... no
checking for --with-icc... no
checking for gcc... no
checking for cc... no
checking for cl.exe... no
configure: error: in `/usr/local/python3/Python-3.6.4':
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details
[root@hadoop1 Python-3.6.4]#
报错原因是由于本机中缺少gcc编译环境,2种解决方式
1、通过yum安装gcc编译环境:yum install -y gcc
2、本机没有安装yum功能,可下载gcc安装包:https://gcc.gnu.org/
[root@hadoop1 Python-3.6.4]# yum install -y gcc


1 [root@hadoop1 Python-3.6.4]# yum install -y gcc
2 已加载插件:fastestmirror, refresh-packagekit, security
3 设置安装进程
4 Loading mirror speeds from cached hostfile
5 * base: mirrors.neusoft.edu.cn
6 * extras: mirrors.neusoft.edu.cn
7 * updates: mirror.bit.edu.cn
8 解决依赖关系
9 --> 执行事务检查
10 ---> Package gcc.x86_64 0:4.4.7-18.el6_9.2 will be 安装
11 --> 处理依赖关系 libgomp = 4.4.7-18.el6_9.2,它被软件包 gcc-4.4.7-18.el6_9.2.x86_64 需要
12 --> 处理依赖关系 cpp = 4.4.7-18.el6_9.2,它被软件包 gcc-4.4.7-18.el6_9.2.x86_64 需要
13 --> 处理依赖关系 libgcc >= 4.4.7-18.el6_9.2,它被软件包 gcc-4.4.7-18.el6_9.2.x86_64 需要
14 --> 处理依赖关系 cloog-ppl >= 0.15,它被软件包 gcc-4.4.7-18.el6_9.2.x86_64 需要
15 --> 执行事务检查
16 ---> Package cloog-ppl.x86_64 0:0.15.7-1.2.el6 will be 安装
17 --> 处理依赖关系 libppl_c.so.2()(64bit),它被软件包 cloog-ppl-0.15.7-1.2.el6.x86_64 需要
18 --> 处理依赖关系 libppl.so.7()(64bit),它被软件包 cloog-ppl-0.15.7-1.2.el6.x86_64 需要
19 ---> Package cpp.x86_64 0:4.4.7-18.el6_9.2 will be 安装
20 --> 处理依赖关系 libmpfr.so.1()(64bit),它被软件包 cpp-4.4.7-18.el6_9.2.x86_64 需要
21 ---> Package libgcc.x86_64 0:4.4.7-16.el6 will be 升级
22 ---> Package libgcc.x86_64 0:4.4.7-18.el6_9.2 will be an update
23 ---> Package libgomp.x86_64 0:4.4.7-16.el6 will be 升级
24 ---> Package libgomp.x86_64 0:4.4.7-18.el6_9.2 will be an update
25 --> 执行事务检查
26 ---> Package mpfr.x86_64 0:2.4.1-6.el6 will be 安装
27 ---> Package ppl.x86_64 0:0.10.2-11.el6 will be 安装
28 --> 完成依赖关系计算
29
30 依赖关系解决
31
32 ================================================================================================================
33 软件包 架构 版本 仓库 大小
34 ================================================================================================================
35 正在安装:
36 gcc x86_64 4.4.7-18.el6_9.2 updates 10 M
37 为依赖而安装:
38 cloog-ppl x86_64 0.15.7-1.2.el6 base 93 k
39 cpp x86_64 4.4.7-18.el6_9.2 updates 3.7 M
40 mpfr x86_64 2.4.1-6.el6 base 157 k
41 ppl x86_64 0.10.2-11.el6 base 1.3 M
42 为依赖而更新:
43 libgcc x86_64 4.4.7-18.el6_9.2 updates 103 k
44 libgomp x86_64 4.4.7-18.el6_9.2 updates 134 k
45
46 事务概要
47 ================================================================================================================
48 Install 5 Package(s)
49 Upgrade 2 Package(s)
50
51 总下载量:16 M
52 下载软件包:
53 (1/7): cloog-ppl-0.15.7-1.2.el6.x86_64.rpm | 93 kB 00:00
54 (2/7): cpp-4.4.7-18.el6_9.2.x86_64.rpm | 3.7 MB 00:01
55 (3/7): gcc-4.4.7-18.el6_9.2.x86_64.rpm | 10 MB 00:02
56 (4/7): libgcc-4.4.7-18.el6_9.2.x86_64.rpm | 103 kB 00:00
57 (5/7): libgomp-4.4.7-18.el6_9.2.x86_64.rpm | 134 kB 00:00
58 (6/7): mpfr-2.4.1-6.el6.x86_64.rpm | 157 kB 00:00
59 (7/7): ppl-0.10.2-11.el6.x86_64.rpm | 1.3 MB 00:02
60 ----------------------------------------------------------------------------------------------------------------
61 总计 1.8 MB/s | 16 MB 00:08
62 运行 rpm_check_debug
63 执行事务测试
64 事务测试成功
65 执行事务
66 正在升级 : libgcc-4.4.7-18.el6_9.2.x86_64 1/9
67 正在安装 : ppl-0.10.2-11.el6.x86_64 2/9
68 正在安装 : cloog-ppl-0.15.7-1.2.el6.x86_64 3/9
69 正在安装 : mpfr-2.4.1-6.el6.x86_64 4/9
70 正在安装 : cpp-4.4.7-18.el6_9.2.x86_64 5/9
71 正在升级 : libgomp-4.4.7-18.el6_9.2.x86_64 6/9
72 正在安装 : gcc-4.4.7-18.el6_9.2.x86_64 7/9
73 清理 : libgcc-4.4.7-16.el6.x86_64 8/9
74 清理 : libgomp-4.4.7-16.el6.x86_64 9/9
75 Verifying : libgomp-4.4.7-18.el6_9.2.x86_64 1/9
76 Verifying : gcc-4.4.7-18.el6_9.2.x86_64 2/9
77 Verifying : mpfr-2.4.1-6.el6.x86_64 3/9
78 Verifying : cloog-ppl-0.15.7-1.2.el6.x86_64 4/9
79 Verifying : cpp-4.4.7-18.el6_9.2.x86_64 5/9
80 Verifying : ppl-0.10.2-11.el6.x86_64 6/9
81 Verifying : libgcc-4.4.7-18.el6_9.2.x86_64 7/9
82 Verifying : libgomp-4.4.7-16.el6.x86_64 8/9
83 Verifying : libgcc-4.4.7-16.el6.x86_64 9/9
84
85 已安装:
86 gcc.x86_64 0:4.4.7-18.el6_9.2
87
88 作为依赖被安装:
89 cloog-ppl.x86_64 0:0.15.7-1.2.el6 cpp.x86_64 0:4.4.7-18.el6_9.2 mpfr.x86_64 0:2.4.1-6.el6
90 ppl.x86_64 0:0.10.2-11.el6
91
92 作为依赖被升级:
93 libgcc.x86_64 0:4.4.7-18.el6_9.2 libgomp.x86_64 0:4.4.7-18.el6_9.2
94
95 完毕!
96 [root@hadoop1 Python-3.6.4]#
重新执行命令 添加配置
[root@hadoop1 Python-3.6.4]# ./configure --prefix=/usr/local/python3


1 [root@hadoop1 Python-3.6.4]# ./configure --prefix=/usr/local/python3
2 checking build system type... x86_64-pc-linux-gnu
3 checking host system type... x86_64-pc-linux-gnu
4 checking for python3.6... no
5 checking for python3... no
6 checking for python... python
7 checking for --enable-universalsdk... no
8 checking for --with-universal-archs... no
9 checking MACHDEP... linux
10 checking for --without-gcc... no
11 checking for --with-icc... no
12 checking for gcc... gcc
13 checking whether the C compiler works... yes
14 checking for C compiler default output file name... a.out
15 checking for suffix of executables...
16 checking whether we are cross compiling... no
17 checking for suffix of object files... o
18 checking whether we are using the GNU C compiler... yes
19 checking whether gcc accepts -g... yes
20 checking for gcc option to accept ISO C89... none needed
21 checking how to run the C preprocessor... gcc -E
22 checking for grep that handles long lines and -e... /bin/grep
23 checking for a sed that does not truncate output... /bin/sed
24 checking for --with-cxx-main=<compiler>... no
25 checking for g++... no
26 configure:
27
28 By default, distutils will build C++ extension modules with "g++".
29 If this is not intended, then set CXX on the configure command line.
30
31 checking for the platform triplet based on compiler characteristics... x86_64-linux-gnu
32 checking for -Wl,--no-as-needed... yes
33 checking for egrep... /bin/grep -E
34 checking for ANSI C header files... yes
35 checking for sys/types.h... yes
36 checking for sys/stat.h... yes
37 checking for stdlib.h... yes
38 checking for string.h... yes
39 checking for memory.h... yes
40 checking for strings.h... yes
41 checking for inttypes.h... yes
42 checking for stdint.h... yes
43 checking for unistd.h... yes
44 checking minix/config.h usability... no
45 checking minix/config.h presence... no
46 checking for minix/config.h... no
47 checking whether it is safe to define __EXTENSIONS__... yes
48 checking for the Android API level... not Android
49 checking for --with-suffix...
50 checking for case-insensitive build directory... no
51 checking LIBRARY... libpython$(VERSION)$(ABIFLAGS).a
52 checking LINKCC... $(PURIFY) $(MAINCC)
53 checking for GNU ld... yes
54 checking for inline... inline
55 checking for --enable-shared... no
56 checking for --enable-profiling... no
57 checking LDLIBRARY... libpython$(VERSION)$(ABIFLAGS).a
58 checking for ranlib... ranlib
59 checking for ar... ar
60 checking for readelf... readelf
61 checking for a BSD-compatible install... /usr/bin/install -c
62 checking for a thread-safe mkdir -p... /bin/mkdir -p
63 checking for --with-pydebug... no
64 checking for --with-assertions... no
65 checking for --enable-optimizations... no
66 checking for --with-lto... no
67 checking target system type... x86_64-pc-linux-gnu
68 checking for -llvm-profdata... no
69 checking for llvm-profdata... ''
70 checking for -Wextra... yes
71 checking whether gcc accepts and needs -fno-strict-aliasing... no
72 checking if we can turn off gcc unused result warning... no
73 checking if we can turn off gcc unused parameter warning... yes
74 checking if we can turn off gcc missing field initializers warning... yes
75 checking if we can turn on gcc mixed sign comparison warning... yes
76 checking if we can turn on gcc unreachable code warning... no
77 checking whether pthreads are available without options... no
78 checking whether gcc accepts -Kpthread... no
79 checking whether gcc accepts -Kthread... no
80 checking whether gcc accepts -pthread... yes
81 checking whether g++ also accepts flags for thread support... no
82 checking for ANSI C header files... (cached) yes
83 checking asm/types.h usability... yes
84 checking asm/types.h presence... yes
85 checking for asm/types.h... yes
86 checking conio.h usability... no
87 checking conio.h presence... no
88 checking for conio.h... no
89 checking direct.h usability... no
90 checking direct.h presence... no
91 checking for direct.h... no
92 checking dlfcn.h usability... yes
93 checking dlfcn.h presence... yes
94 checking for dlfcn.h... yes
95 checking errno.h usability... yes
96 checking errno.h presence... yes
97 checking for errno.h... yes
98 checking fcntl.h usability... yes
99 checking fcntl.h presence... yes
100 checking for fcntl.h... yes
101 checking grp.h usability... yes
102 checking grp.h presence... yes
103 checking for grp.h... yes
104 checking ieeefp.h usability... no
105 checking ieeefp.h presence... no
106 checking for ieeefp.h... no
107 checking io.h usability... no
108 checking io.h presence... no
109 checking for io.h... no
110 checking langinfo.h usability... yes
111 checking langinfo.h presence... yes
112 checking for langinfo.h... yes
113 checking libintl.h usability... yes
114 checking libintl.h presence... yes
115 checking for libintl.h... yes
116 checking process.h usability... no
117 checking process.h presence... no
118 checking for process.h... no
119 checking pthread.h usability... yes
120 checking pthread.h presence... yes
121 checking for pthread.h... yes
122 checking sched.h usability... yes
123 checking sched.h presence... yes
124 checking for sched.h... yes
125 checking shadow.h usability... yes
126 checking shadow.h presence... yes
127 checking for shadow.h... yes
128 checking signal.h usability... yes
129 checking signal.h presence... yes
130 checking for signal.h... yes
131 checking stropts.h usability... no
132 checking stropts.h presence... no
133 checking for stropts.h... no
134 checking termios.h usability... yes
135 checking termios.h presence... yes
136 checking for termios.h... yes
137 checking for unistd.h... (cached) yes
138 checking utime.h usability... yes
139 checking utime.h presence... yes
140 checking for utime.h... yes
141 checking poll.h usability... yes
142 checking poll.h presence... yes
143 checking for poll.h... yes
144 checking sys/devpoll.h usability... no
145 checking sys/devpoll.h presence... no
146 checking for sys/devpoll.h... no
147 checking sys/epoll.h usability... yes
148 checking sys/epoll.h presence... yes
149 checking for sys/epoll.h... yes
150 checking sys/poll.h usability... yes
151 checking sys/poll.h presence... yes
152 checking for sys/poll.h... yes
153 checking sys/audioio.h usability... no
154 checking sys/audioio.h presence... no
155 checking for sys/audioio.h... no
156 checking sys/xattr.h usability... yes
157 checking sys/xattr.h presence... yes
158 checking for sys/xattr.h... yes
159 checking sys/bsdtty.h usability... no
160 checking sys/bsdtty.h presence... no
161 checking for sys/bsdtty.h... no
162 checking sys/event.h usability... no
163 checking sys/event.h presence... no
164 checking for sys/event.h... no
165 checking sys/file.h usability... yes
166 checking sys/file.h presence... yes
167 checking for sys/file.h... yes
168 checking sys/ioctl.h usability... yes
169 checking sys/ioctl.h presence... yes
170 checking for sys/ioctl.h... yes
171 checking sys/kern_control.h usability... no
172 checking sys/kern_control.h presence... no
173 checking for sys/kern_control.h... no
174 checking sys/loadavg.h usability... no
175 checking sys/loadavg.h presence... no
176 checking for sys/loadavg.h... no
177 checking sys/lock.h usability... no
178 checking sys/lock.h presence... no
179 checking for sys/lock.h... no
180 checking sys/mkdev.h usability... no
181 checking sys/mkdev.h presence... no
182 checking for sys/mkdev.h... no
183 checking sys/modem.h usability... no
184 checking sys/modem.h presence... no
185 checking for sys/modem.h... no
186 checking sys/param.h usability... yes
187 checking sys/param.h presence... yes
188 checking for sys/param.h... yes
189 checking sys/random.h usability... no
190 checking sys/random.h presence... no
191 checking for sys/random.h... no
192 checking sys/select.h usability... yes
193 checking sys/select.h presence... yes
194 checking for sys/select.h... yes
195 checking sys/sendfile.h usability... yes
196 checking sys/sendfile.h presence... yes
197 checking for sys/sendfile.h... yes
198 checking sys/socket.h usability... yes
199 checking sys/socket.h presence... yes
200 checking for sys/socket.h... yes
201 checking sys/statvfs.h usability... yes
202 checking sys/statvfs.h presence... yes
203 checking for sys/statvfs.h... yes
204 checking for sys/stat.h... (cached) yes
205 checking sys/syscall.h usability... yes
206 checking sys/syscall.h presence... yes
207 checking for sys/syscall.h... yes
208 checking sys/sys_domain.h usability... no
209 checking sys/sys_domain.h presence... no
210 checking for sys/sys_domain.h... no
211 checking sys/termio.h usability... no
212 checking sys/termio.h presence... no
213 checking for sys/termio.h... no
214 checking sys/time.h usability... yes
215 checking sys/time.h presence... yes
216 checking for sys/time.h... yes
217 checking sys/times.h usability... yes
218 checking sys/times.h presence... yes
219 checking for sys/times.h... yes
220 checking for sys/types.h... (cached) yes
221 checking sys/uio.h usability... yes
222 checking sys/uio.h presence... yes
223 checking for sys/uio.h... yes
224 checking sys/un.h usability... yes
225 checking sys/un.h presence... yes
226 checking for sys/un.h... yes
227 checking sys/utsname.h usability... yes
228 checking sys/utsname.h presence... yes
229 checking for sys/utsname.h... yes
230 checking sys/wait.h usability... yes
231 checking sys/wait.h presence... yes
232 checking for sys/wait.h... yes
233 checking pty.h usability... yes
234 checking pty.h presence... yes
235 checking for pty.h... yes
236 checking libutil.h usability... no
237 checking libutil.h presence... no
238 checking for libutil.h... no
239 checking sys/resource.h usability... yes
240 checking sys/resource.h presence... yes
241 checking for sys/resource.h... yes
242 checking netpacket/packet.h usability... yes
243 checking netpacket/packet.h presence... yes
244 checking for netpacket/packet.h... yes
245 checking sysexits.h usability... yes
246 checking sysexits.h presence... yes
247 checking for sysexits.h... yes
248 checking bluetooth.h usability... no
249 checking bluetooth.h presence... no
250 checking for bluetooth.h... no
251 checking linux/tipc.h usability... yes
252 checking linux/tipc.h presence... yes
253 checking for linux/tipc.h... yes
254 checking linux/random.h usability... yes
255 checking linux/random.h presence... yes
256 checking for linux/random.h... yes
257 checking spawn.h usability... yes
258 checking spawn.h presence... yes
259 checking for spawn.h... yes
260 checking util.h usability... no
261 checking util.h presence... no
262 checking for util.h... no
263 checking alloca.h usability... yes
264 checking alloca.h presence... yes
265 checking for alloca.h... yes
266 checking endian.h usability... yes
267 checking endian.h presence... yes
268 checking for endian.h... yes
269 checking sys/endian.h usability... no
270 checking sys/endian.h presence... no
271 checking for sys/endian.h... no
272 checking sys/sysmacros.h usability... yes
273 checking sys/sysmacros.h presence... yes
274 checking for sys/sysmacros.h... yes
275 checking for dirent.h that defines DIR... yes
276 checking for library containing opendir... none required
277 checking whether sys/types.h defines makedev... yes
278 checking bluetooth/bluetooth.h usability... no
279 checking bluetooth/bluetooth.h presence... no
280 checking for bluetooth/bluetooth.h... no
281 checking for net/if.h... yes
282 checking for linux/netlink.h... yes
283 checking for linux/can.h... yes
284 checking for linux/can/raw.h... yes
285 checking for linux/can/bcm.h... no
286 checking for clock_t in time.h... yes
287 checking for makedev... yes
288 checking for le64toh... yes
289 checking Solaris LFS bug... no
290 checking for mode_t... yes
291 checking for off_t... yes
292 checking for pid_t... yes
293 checking for size_t... yes
294 checking for uid_t in sys/types.h... yes
295 checking for ssize_t... yes
296 checking for __uint128_t... yes
297 checking size of int... 4
298 checking size of long... 8
299 checking size of long long... 8
300 checking size of void *... 8
301 checking size of short... 2
302 checking size of float... 4
303 checking size of double... 8
304 checking size of fpos_t... 16
305 checking size of size_t... 8
306 checking size of pid_t... 4
307 checking size of uintptr_t... 8
308 checking for long double support... yes
309 checking size of long double... 16
310 checking size of _Bool... 1
311 checking size of off_t... 8
312 checking whether to enable large file support... no
313 checking size of time_t... 8
314 checking for pthread_t... yes
315 checking size of pthread_t... 8
316 checking for --enable-framework... no
317 checking for dyld... no
318 checking the extension of shared libraries... .so
319 checking LDSHARED... $(CC) -shared
320 checking CCSHARED... -fPIC
321 checking LINKFORSHARED... -Xlinker -export-dynamic
322 checking CFLAGSFORSHARED...
323 checking SHLIBS... $(LIBS)
324 checking for sendfile in -lsendfile... no
325 checking for dlopen in -ldl... yes
326 checking for shl_load in -ldld... no
327 checking for library containing sem_init... -lpthread
328 checking for textdomain in -lintl... no
329 checking aligned memory access is required... no
330 checking for --with-hash-algorithm... default
331 checking for --with-address-sanitizer... no
332 checking for t_open in -lnsl... no
333 checking for socket in -lsocket... no
334 checking for --with-libs... no
335 checking for pkg-config... /usr/bin/pkg-config
336 checking pkg-config is at least version 0.9.0... yes
337 checking for --with-system-expat... no
338 checking for --with-system-ffi... yes
339 checking for --with-system-libmpdec... no
340 checking for --enable-loadable-sqlite-extensions... no
341 checking for --with-tcltk-includes... default
342 checking for --with-tcltk-libs... default
343 checking for --with-dbmliborder...
344 checking for --with-threads... yes
345 checking if PTHREAD_SCOPE_SYSTEM is supported... yes
346 checking for pthread_sigmask... yes
347 checking for pthread_atfork... yes
348 checking if --enable-ipv6 is specified... yes
349 checking if RFC2553 API is available... yes
350 checking ipv6 stack type... linux-glibc
351 checking for CAN_RAW_FD_FRAMES... no
352 checking for --with-doc-strings... yes
353 checking for --with-pymalloc... yes
354 checking for --with-valgrind... no
355 checking for --with-dtrace... no
356 checking for dlopen... yes
357 checking DYNLOADFILE... dynload_shlib.o
358 checking MACHDEP_OBJS... none
359 checking for alarm... yes
360 checking for accept4... yes
361 checking for setitimer... yes
362 checking for getitimer... yes
363 checking for bind_textdomain_codeset... yes
364 checking for chown... yes
365 checking for clock... yes
366 checking for confstr... yes
367 checking for ctermid... yes
368 checking for dup3... yes
369 checking for execv... yes
370 checking for faccessat... yes
371 checking for fchmod... yes
372 checking for fchmodat... yes
373 checking for fchown... yes
374 checking for fchownat... yes
375 checking for fexecve... yes
376 checking for fdopendir... yes
377 checking for fork... yes
378 checking for fpathconf... yes
379 checking for fstatat... yes
380 checking for ftime... yes
381 checking for ftruncate... yes
382 checking for futimesat... yes
383 checking for futimens... yes
384 checking for futimes... yes
385 checking for gai_strerror... yes
386 checking for getentropy... no
387 checking for getgrouplist... yes
388 checking for getgroups... yes
389 checking for getlogin... yes
390 checking for getloadavg... yes
391 checking for getpeername... yes
392 checking for getpgid... yes
393 checking for getpid... yes
394 checking for getpriority... yes
395 checking for getresuid... yes
396 checking for getresgid... yes
397 checking for getpwent... yes
398 checking for getspnam... yes
399 checking for getspent... yes
400 checking for getsid... yes
401 checking for getwd... yes
402 checking for initgroups... yes
403 checking for kill... yes
404 checking for killpg... yes
405 checking for lchmod... no
406 checking for lchown... yes
407 checking for linkat... yes
408 checking for lstat... yes
409 checking for lutimes... yes
410 checking for mmap... yes
411 checking for memrchr... yes
412 checking for mbrtowc... yes
413 checking for mkdirat... yes
414 checking for mkfifo... yes
415 checking for mkfifoat... yes
416 checking for mknod... yes
417 checking for mknodat... yes
418 checking for mktime... yes
419 checking for mremap... yes
420 checking for nice... yes
421 checking for openat... yes
422 checking for pathconf... yes
423 checking for pause... yes
424 checking for pipe2... yes
425 checking for plock... no
426 checking for poll... yes
427 checking for posix_fallocate... yes
428 checking for posix_fadvise... yes
429 checking for pread... yes
430 checking for pthread_init... no
431 checking for pthread_kill... yes
432 checking for putenv... yes
433 checking for pwrite... yes
434 checking for readlink... yes
435 checking for readlinkat... yes
436 checking for readv... yes
437 checking for realpath... yes
438 checking for renameat... yes
439 checking for select... yes
440 checking for sem_open... yes
441 checking for sem_timedwait... yes
442 checking for sem_getvalue... yes
443 checking for sem_unlink... yes
444 checking for sendfile... yes
445 checking for setegid... yes
446 checking for seteuid... yes
447 checking for setgid... yes
448 checking for sethostname... yes
449 checking for setlocale... yes
450 checking for setregid... yes
451 checking for setreuid... yes
452 checking for setresuid... yes
453 checking for setresgid... yes
454 checking for setsid... yes
455 checking for setpgid... yes
456 checking for setpgrp... yes
457 checking for setpriority... yes
458 checking for setuid... yes
459 checking for setvbuf... yes
460 checking for sched_get_priority_max... yes
461 checking for sched_setaffinity... yes
462 checking for sched_setscheduler... yes
463 checking for sched_setparam... yes
464 checking for sched_rr_get_interval... yes
465 checking for sigaction... yes
466 checking for sigaltstack... yes
467 checking for siginterrupt... yes
468 checking for sigpending... yes
469 checking for sigrelse... yes
470 checking for sigtimedwait... yes
471 checking for sigwait... yes
472 checking for sigwaitinfo... yes
473 checking for snprintf... yes
474 checking for strftime... yes
475 checking for strlcpy... no
476 checking for symlinkat... yes
477 checking for sync... yes
478 checking for sysconf... yes
479 checking for tcgetpgrp... yes
480 checking for tcsetpgrp... yes
481 checking for tempnam... yes
482 checking for timegm... yes
483 checking for times... yes
484 checking for tmpfile... yes
485 checking for tmpnam... yes
486 checking for tmpnam_r... yes
487 checking for truncate... yes
488 checking for uname... yes
489 checking for unlinkat... yes
490 checking for unsetenv... yes
491 checking for utimensat... yes
492 checking for utimes... yes
493 checking for waitid... yes
494 checking for waitpid... yes
495 checking for wait3... yes
496 checking for wait4... yes
497 checking for wcscoll... yes
498 checking for wcsftime... yes
499 checking for wcsxfrm... yes
500 checking for wmemcmp... yes
501 checking for writev... yes
502 checking for _getpty... no
503 checking whether dirfd is declared... yes
504 checking for chroot... yes
505 checking for link... yes
506 checking for symlink... yes
507 checking for fchdir... yes
508 checking for fsync... yes
509 checking for fdatasync... yes
510 checking for epoll... yes
511 checking for epoll_create1... yes
512 checking for kqueue... no
513 checking for prlimit... no
514 checking for ctermid_r... no
515 checking for flock declaration... yes
516 checking for flock... yes
517 checking for getpagesize... yes
518 checking for broken unsetenv... no
519 checking for true... true
520 checking for inet_aton in -lc... yes
521 checking for chflags... no
522 checking for lchflags... no
523 checking for inflateCopy in -lz... yes
524 checking for hstrerror... yes
525 checking for inet_aton... yes
526 checking for inet_pton... yes
527 checking for setgroups... yes
528 checking for openpty... no
529 checking for openpty in -lutil... yes
530 checking for forkpty... yes
531 checking for memmove... yes
532 checking for fseek64... no
533 checking for fseeko... yes
534 checking for fstatvfs... yes
535 checking for ftell64... no
536 checking for ftello... yes
537 checking for statvfs... yes
538 checking for dup2... yes
539 checking for strdup... yes
540 checking for getpgrp... yes
541 checking for setpgrp... (cached) yes
542 checking for gettimeofday... yes
543 checking for clock_gettime... no
544 checking for clock_gettime in -lrt... yes
545 checking for clock_getres... yes
546 checking for clock_settime... yes
547 checking for major... yes
548 checking for if_nameindex... yes
549 checking for lockf... yes
550 checking for getaddrinfo... yes
551 checking getaddrinfo bug... no
552 checking for getnameinfo... yes
553 checking whether time.h and sys/time.h may both be included... yes
554 checking whether struct tm is in sys/time.h or time.h... time.h
555 checking for struct tm.tm_zone... yes
556 checking for struct stat.st_rdev... yes
557 checking for struct stat.st_blksize... yes
558 checking for struct stat.st_flags... no
559 checking for struct stat.st_gen... no
560 checking for struct stat.st_birthtime... no
561 checking for struct stat.st_blocks... yes
562 checking for struct passwd.pw_gecos... yes
563 checking for struct passwd.pw_passwd... yes
564 checking for time.h that defines altzone... no
565 checking whether sys/select.h and sys/time.h may both be included... yes
566 checking for addrinfo... yes
567 checking for sockaddr_storage... yes
568 checking for sockaddr_alg... no
569 checking whether char is unsigned... no
570 checking for an ANSI C-conforming const... yes
571 checking for working volatile... yes
572 checking for working signed char... yes
573 checking for prototypes... yes
574 checking for variable length prototypes and stdarg.h... yes
575 checking for socketpair... yes
576 checking if sockaddr has sa_len member... no
577 checking for gethostbyname_r... yes
578 checking gethostbyname_r with 6 args... yes
579 checking for __fpu_control... yes
580 checking for --with-fpectl... no
581 checking for --with-libm=STRING... default LIBM="-lm"
582 checking for --with-libc=STRING... default LIBC=""
583 checking for x64 gcc inline assembler... yes
584 checking whether C doubles are little-endian IEEE 754 binary64... yes
585 checking whether C doubles are big-endian IEEE 754 binary64... no
586 checking whether C doubles are ARM mixed-endian IEEE 754 binary64... no
587 checking whether we can use gcc inline assembler to get and set x87 control word... yes
588 checking whether we can use gcc inline assembler to get and set mc68881 fpcr... no
589 checking for x87-style double rounding... no
590 checking for acosh... yes
591 checking for asinh... yes
592 checking for atanh... yes
593 checking for copysign... yes
594 checking for erf... yes
595 checking for erfc... yes
596 checking for expm1... yes
597 checking for finite... yes
598 checking for gamma... yes
599 checking for hypot... yes
600 checking for lgamma... yes
601 checking for log1p... yes
602 checking for log2... yes
603 checking for round... yes
604 checking for tgamma... yes
605 checking whether isinf is declared... yes
606 checking whether isnan is declared... yes
607 checking whether isfinite is declared... yes
608 checking whether tanh preserves the sign of zero... yes
609 checking whether log1p drops the sign of negative zero... no
610 checking whether POSIX semaphores are enabled... yes
611 checking for broken sem_getvalue... no
612 checking whether RTLD_LAZY is declared... yes
613 checking whether RTLD_NOW is declared... yes
614 checking whether RTLD_GLOBAL is declared... yes
615 checking whether RTLD_LOCAL is declared... yes
616 checking whether RTLD_NODELETE is declared... yes
617 checking whether RTLD_NOLOAD is declared... yes
618 checking whether RTLD_DEEPBIND is declared... yes
619 checking digit size for Python's longs... no value specified
620 checking wchar.h usability... yes
621 checking wchar.h presence... yes
622 checking for wchar.h... yes
623 checking size of wchar_t... 4
624 checking for UCS-4 tcl... no
625 checking whether wchar_t is signed... yes
626 no usable wchar_t found
627 checking whether byte ordering is bigendian... no
628 checking ABIFLAGS... m
629 checking SOABI... cpython-36m-x86_64-linux-gnu
630 checking LDVERSION... $(VERSION)$(ABIFLAGS)
631 checking whether right shift extends the sign bit... yes
632 checking for getc_unlocked() and friends... yes
633 checking how to link readline libs... -lreadline
634 checking for rl_callback_handler_install in -lreadline... yes
635 checking for rl_pre_input_hook in -lreadline... yes
636 checking for rl_completion_display_matches_hook in -lreadline... yes
637 checking for rl_resize_terminal in -lreadline... yes
638 checking for rl_completion_matches in -lreadline... yes
639 checking for append_history in -lreadline... yes
640 checking for broken nice()... no
641 checking for broken poll()... no
642 checking for struct tm.tm_zone... (cached) yes
643 checking for working tzset()... yes
644 checking for tv_nsec in struct stat... yes
645 checking for tv_nsec2 in struct stat... no
646 checking curses.h usability... yes
647 checking curses.h presence... yes
648 checking for curses.h... yes
649 checking ncurses.h usability... yes
650 checking ncurses.h presence... yes
651 checking for ncurses.h... yes
652 checking for term.h... yes
653 checking whether mvwdelch is an expression... yes
654 checking whether WINDOW has _flags... yes
655 checking for is_pad... no
656 checking for is_term_resized... yes
657 checking for resize_term... yes
658 checking for resizeterm... yes
659 checking for immedok... yes
660 checking for syncok... yes
661 checking for wchgat... yes
662 checking for filter... yes
663 checking for has_key... yes
664 checking for typeahead... yes
665 checking for use_env... yes
666 configure: checking for device files
667 checking for /dev/ptmx... yes
668 checking for /dev/ptc... no
669 checking for %zd printf() format support... yes
670 checking for socklen_t... yes
671 checking for broken mbstowcs... no
672 checking for --with-computed-gotos... no value specified
673 checking whether gcc -pthread supports computed gotos... yes
674 checking for build directories... done
675 checking for -O2... yes
676 checking for glibc _FORTIFY_SOURCE/memmove bug... no
677 checking for gcc ipa-pure-const bug... no
678 checking for stdatomic.h... no
679 checking for GCC >= 4.7 __atomic builtins... no
680 checking for ensurepip... upgrade
681 checking if the dirent structure of a d_type field... yes
682 checking for the Linux getrandom() syscall... no
683 checking for the getrandom() function... no
684 configure: creating ./config.status
685 config.status: creating Makefile.pre
686 config.status: creating Modules/Setup.config
687 config.status: creating Misc/python.pc
688 config.status: creating Misc/python-config.sh
689 config.status: creating Modules/ld_so_aix
690 config.status: creating pyconfig.h
691 creating Modules/Setup
692 creating Modules/Setup.local
693 creating Makefile
694
695
696 If you want a release build with all stable optimizations active (PGO, etc),
697 please run ./configure --enable-optimizations
698
699
700 [root@hadoop1 Python-3.6.4]#
6、编译源码
[root@hadoop1 Python-3.6.4]# make
7、执行安装
[root@hadoop1 Python-3.6.4]# make install
8、将python3的目录复制到/usr/bin/目录下
[root@hadoop1 /]# cp -r /usr/local/python3/ /usr/bin/
[root@hadoop1 /]#
9、建立软连接
对/usr/bin目录下的python3目录重命名为python364
[root@hadoop2 Python-3.6.4]# cd /usr/bin/
[root@hadoop1 bin]# mv python3 python364
建立软链接
[root@hadoop1 bin]# ln -s /usr/local/python3/bin/python3 /usr/bin/python3
可以ls -l查看一下
10、配置环境变量
[root@hadoop1 bin]# vi /etc/profile
#Python3.6.4
PATH=$PATH:$HOME/bin:/usr/bin/python3/bin
export PATH
修改完记得执行行下面的命令,让上一步的修改生效:
[root@hadoop1 bin]# source /etc/profile
11、检查验证
[root@hadoop1 bin]# python3 -V
Python 3.6.4
[root@hadoop1 bin]#
12、安装模块
[root@hadoop1 bin]# pip3 install paramiko
bash: /usr/bin/pip3: 没有那个文件或目录
报错么有这个命令
建立pip3的软连接
[root@hadoop1 bin]# ln -s /usr/local/python3/bin/pip3.6 /usr/bin/pip3
重新安装模块
[root@hadoop1 bin]# pip3 install paramiko
Collecting paramiko
Could not find a version that satisfies the requirement paramiko (from versions: )
No matching distribution found for paramiko
You are using pip version 9.0.1, however version 9.0.3 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
[root@hadoop1 bin]#
来源:oschina
链接:https://my.oschina.net/u/4363284/blog/4032876