0

我输入一个python 3 jupyter笔记本......

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'
4

2 回答 2

1

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

于 2019-07-16T18:00:15.363 回答
0

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

pip install --upgrade certifi
于 2019-07-14T19:34:57.873 回答