[root@ansible ~]# yum -y install gcc-* openssl-* libffi-devel sqlite-devel
[root@ansible ~]# vi /tmp/Python-3.6.15/Modules/Setup
_ssl _ssl.c /
-DUSE_SSL -I$(SSL)/include -I$(SSL)/include/openssl /
-L$(SSL)/lib -lssl -lcrypto
[root@ansible Python-3.6.15]# ./configure --prefix=/usr/local/python3.6 --enable-optimizations
[root@ansible Python-3.6.15]# make && make install
[root@ansible bin]# cd /usr/local/python3.6/bin
[root@ansible bin]# ./python3.6
Python 3.6.15 (default, Feb 17 2022, 21:06:30)
[GCC 4.8.5 20150623 (Red Hat 4.8.5-44)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import ssl
版权声明:本文为博主原创文章,未经博主允许不得转载。
Python
- 上一篇:Oracle删除用户出现ORA-01940
- 下一篇:Python装饰器