SSL certificate problem
打算从 git 上下载 rabbitmq_in_action 的源码来做试验,出现如下问题:
1 2 3 4 5 6 |
|
网友推荐解决办法:
1 |
|
1 |
|
采用第二种方法执行结果:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
|
注:在通过 yum 安装 openssl-devel 后使用 git 就不会报上述错误了。
1 2 3 4 5 6 7 8 |
|
certificate common name `xxx' doesn't match requested host name 'yyy'
1 2 3 4 5 6 7 8 |
|
忽略证书检查
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
|
RuntimeError: Compression requires the (missing) zlib module
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 |
|
安装 setuptools-0.9.1 过程中报缺少 zlib 库。原因应该是,我在安装 Python2.7 的时候尚未安装 zlib 和 zlib-devel 。后续安装了这两个库,但此时 Python 中没有将其编译进去。所以需要重新编译 Python 。
若未安装可以使用如下命令安装:
1 |
|
重新安装 setuptools-0.9.1 成功。
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 |
|
AttributeError: 'module' object has no attribute 'HTTPSConnection'
在成功安装了 setuptools 和 pip 之后进行 pika 的安装:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
|
网友说:因为 Python 编译安装时缺少 SSL 相关的库导致,所以需要安装 openssl-devel 后重新编译安装 Python 。
1 |
|
安装成功后,重新编译安装 Python ,在执行 pip 命令安装 pika 成功。
1 2 3 4 5 6 7 8 9 10 11 |
|