• 【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
  • 相关阅读:
    学习进度笔记
    学习进度笔记
    学习进度笔记
    学习进度笔记
    博雅数据机器学习10
    学习进度笔记
    HDFS上文件权限操作
    HBase的安装与使用
    hadoop完全分布式安装教程
    python安装easygui
  • 原文地址:https://www.cnblogs.com/jiangxu67/p/7132648.html
Copyright © 2020-2023  润新知