请求模块导入错误

时间:2018-08-11 03:09:27

标签: python-requests

在其中一个程序中使用请求模块时,我已缩小了此错误的范围:

import requests

Traceback (most recent call last):
File "/usr/local/lib/python3.7/site-packages/google_api_python_client-1.7.4-py3.7.egg/googleapiclient/discovery.py", line 39, in <module>
File "/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/lib/python3.7/email/generator.py", line 16, in <module>
from email.utils import _has_surrogates
ImportError: cannot import name '_has_surrogates' from 'email.utils' (/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/lib/python3.7/email/utils.py)

我不知道这意味着什么或如何解决...

0 个答案:

没有答案