首页 > 代码库 > 【Python】itchat
【Python】itchat
错误: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
【Python】itchat
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。