问题
CentOS 6.6, python 2.7.11
使用pip安装RobotFramework报错:
There was a problem confirming the ssl certificate: Can’t connect to HTTPS URL because the SSL module is not available.
解决方法
- 安装openssl、openssl-devel、pyOpenSSl包
123 yum install opensslyum install openssl-develyum install pyOpenSSL
- 修改Python安装配置文件
vim Python-2.7.11/Modules/Setup
123456789# 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
去掉最后这三行的注释
- 重新编译Python安装
make clean && make && make install
- 测试,正常可用