Python3.5.2下缺少zlib模块和urllib不能打开https的解决方法
来源:互联网 发布:深圳php好找工作吗 编辑:程序博客网 时间:2024/05/21 14:54
方法一(实测有效):
1.关于缺少zlib
安装zlib1g-dev
apt-get install zlib1g-dev
2.关于不能打开https链接
安装libssl
apt-get install-dev
3.编辑Modules/Setup.dist
找到SSL和zlib模块,去掉某些注释,结果如下:
第一处:
# 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
第二处:
# Andrew Kuchling's zlib module.
# This require zlib 1.1.3 (or later).
# See http://www.gzip.org/zlib/
zlib zlibmodule.c -I$(prefix)/include -L$(exec_prefix)/lib -lz
3.安装python3,如果已安装就重新编译python3
切换到python3源代码目录,
依次执行命令.
/congigure
make
make test
make install
方法二(未验证):
1.关于缺少zlib
安装zlib1g-dev
apt-get install zlib1g-dev
2.关于不能打开https链接
安装libssl
apt-get install-dev
3.安装python3,如果已安装就重新编译python3
切换到python3源代码目录,
依次执行命令.
/congigure
make
make test
make install- Python3.5.2下缺少zlib模块和urllib不能打开https的解决方法
- Python3 urllib和第三方模块requests
- python3的urllib的request模块
- python3 基于urllib模块的网络编程
- Python3学习笔记 urllib模块的使用
- Python3 urllib模块使用
- python3 urllib 访问https网站
- OSG缺少zlib.dll解决方法
- python3 使用urllib.request模块,关于bytes和string的那些事
- python3.x中的urllib模块
- python3.x中的urllib模块
- urllib模块和urllib2模块的区别
- python3.4爬虫——urllib等模块的引用
- Python3学习笔记(urllib模块的使用)
- python内置的urllib模块不支持https协议的解决办法
- python内置的urllib模块不支持https协议的解决办法
- python3 urllib 链接中有中文的解决方法
- Python3 的urllib实例
- JAVA基础再回首(二十二)——转换流概述及用法、简化写法FileWriter和 FileReader、字符缓冲流及特殊用法、字节流字符流复制文件方法总结
- Guibs 的 Python学习_注释
- js案例-3 复选框checkbox的全选返回控制
- C#学习之路----1
- Guibs 的 Python学习_Python 之禅
- Python3.5.2下缺少zlib模块和urllib不能打开https的解决方法
- Java中对象的引用
- Guibs 的 Python学习_列表
- 实现进度条效果
- APACHE如何里一个站点绑定多个域名?用ServerAlias
- Guibs 的 Python学习_元组
- UVA11149-Power of Matrix
- 插入排序-算法导论学习笔记
- Guibs 的 Python学习_If