【问题标题】:I import wikipedia, I get the error... AttributeError: module 'certifi' has no attribute 'where'我导入维基百科,我收到错误... AttributeError: module 'certifi' has no attribute 'where'
【发布时间】:2019-07-14 17:50:05
【问题描述】:

我在 python 3 jupyter notebook 中输入...

import wikipedia as wp

我收到一个很长的错误,其结尾显示...

c:\users\yishai and shira\appdata\local\programs\python\python37-32\certifi.py in <module>
      3 http = urllib3.PoolManager(
      4     cert_reqs='CERT_REQUIRED',
----> 5     ca_certs=certifi.where())
      6 ##The PoolManager will automatically handle
      7 ##certificate verification and will raise SSLError if verification fails:

AttributeError: module 'certifi' has no attribute 'where'

【问题讨论】:

    标签: python python-3.x certifi


    【解决方案1】:

    解决了。原来,我有一个名为 certifi 的 file。我改变了它的名字。完毕。谢谢!

    【讨论】:

      【解决方案2】:

      尝试更新认证模块,它应该可以工作:

      pip install --upgrade certifi
      

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2020-09-24
        • 1970-01-01
        • 2020-09-04
        • 2022-12-01
        • 2014-12-20
        • 2021-12-12
        相关资源
        最近更新 更多