1、python 使用request模块访问微信(gettoken)报错:
can`t connect https url ssl module not available
如下图:
原因:编译python的时候可能没有安装OpenSSL和openssl-devel
解决办法,yum -y install openssl openssh-devel 然后重新编译python
2、编译后报错:
Caused by SSLError(SSLError(1, u'[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:581)')
解决办法,requests的post和get方法加参数verify =FALSE
执行成功。