1.安装最主要的—python3.6
方法见我的上一篇blog—python3.6安装
2.安装必要的组件—openssl and libssl-dev
apt-get install openssl
apt-get libssl-dev
3.打开python安装路径
cd /opt/python3.6.2
4. 修改文件—Setup
gedit Modules/Setup
#修改结果如下:
# Socket module helper for socket(2)
_socket socketmodule.c timemodule.c
# Socket module helper for SSL support; you must comment out the other
# socket line above, and possibly edit the SSL variable:
#SSL=/usr/local/ssl
_ssl _ssl.c \
-DUSE_SSL -I$(SSL)/include -I$(SSL)/include/openssl \
-L$(SSL)/lib -lssl -lcrypto
本文档详细介绍了Python3.6的安装步骤,并提供了安装必要的组件如OpenSSL及libssl-dev的方法。同时,还提供了如何修改Python安装路径下的Setup文件以支持SSL功能的具体指导。
323

被折叠的 条评论
为什么被折叠?



