【python】_ssl 模块支持

简介: 【python】_ssl 模块支持

前言


正文


记录一下搭建环境是遇到的 python 里出现的 缺少 _ssl 模块的问题。


777.webp.jpg


当我们直接配置的时候,会缺少 _ssl ,所以我们在使用 configure 配置前,先编辑 ${python_install_dirctory}/Module/Setup 文件,如下所示:


444.webp.jpg


将第210、215、216、217 行的注释去了,去了之后,再执行配置安装即可。

_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


Linux 的学习是使用基本上都得面临枯燥的黑窗口,慢慢来吧。

目录
相关文章
|
1天前
|
Python
在Python中,利用`os模块`的`path.exists()`函数可判断文件是否存
在Python中,利用`os模块`的`path.exists()`函数可判断文件是否存在,该函数对路径进行检查,存在则返回True,不存在则返回False。示例代码展示了如何检查'example.txt'文件是否存在并相应打印消息。此外,`os.path.isfile()`用于确认路径是否为文件,仅当是文件时返回True,否则返回False,同样配以示例说明其用法。
8 2
|
2天前
|
Python
【Python进阶(五)】——模块搜索及工作目录
【Python进阶(五)】——模块搜索及工作目录
|
4天前
|
Python Windows
python中的异常与模块
python中的异常与模块
9 1
|
13天前
|
网络安全 Python
Conda/Python更新失败:SSL错误
Conda/Python更新失败:SSL错误
|
13天前
|
JSON 数据格式 Python
Python标准库中包含了json模块,可以帮助你轻松处理JSON数据
【4月更文挑战第30天】Python的json模块简化了JSON数据与Python对象之间的转换。使用`json.dumps()`可将字典转为JSON字符串,如`{"name": "John", "age": 30, "city": "New York"}`,而`json.loads()`则能将JSON字符串转回字典。通过`json.load()`从文件读取JSON数据,`json.dump()`则用于将数据写入文件。
17 1
|
14天前
|
Python
Python实现压缩解压---tarfile模块详解
Python实现压缩解压---tarfile模块详解
|
14天前
|
Linux Python Windows
Python中time和datetime模块详解
Python中time和datetime模块详解
|
15天前
|
存储 Linux 数据安全/隐私保护
python的压缩模块zipfile详解
python的压缩模块zipfile详解
|
15天前
|
Linux Python Windows
python的os模块详细解读(二)
python的os模块详细解读(二)
|
15天前
|
移动开发 Linux Shell
python的os模块详细解读(一)
python的os模块详细解读(一)
python的os模块详细解读(一)