错误:http://bbs.51cto.com/thread-1501477-1.html
解决方法降低certifi版本
>>> import itchat >>> itchat.auto_login(enableCmdQR=2) Traceback (most recent call last): File "/usr/local/python27/lib/python2.7/site-packages/itchat/utils.py", line 125, in test_connect r = requests.get(config.BASE_URL) File "/usr/local/python27/lib/python2.7/site-packages/requests/api.py", line 72, in get return request('get', url, params=params, **kwargs) File "/usr/local/python27/lib/python2.7/site-packages/requests/api.py", line 58, in request return session.request(method=method, url=url, **kwargs) File "/usr/local/python27/lib/python2.7/site-packages/requests/sessions.py", line 502, in request resp = self.send(prep, **send_kwargs) File "/usr/local/python27/lib/python2.7/site-packages/requests/sessions.py", line 612, in send r = adapter.send(request, **kwargs) File "/usr/local/python27/lib/python2.7/site-packages/requests/adapters.py", line 514, in send raise SSLError(e, request=request) SSLError: ("bad handshake: Error([('SSL routines', 'SSL3_GET_SERVER_CERTIFICATE', 'certificate verify failed')],)",) You can't get access to internet or wechat domain, so exit. [root@host1 ~]# pip uninstall -y certifi [root@host1 ~]# pip install certifi==2015.04.28