我尝试导入Text
从typing
通过,
from typing import Text
我收到以下错误,
Traceback (most recent call last):
File "<input>", line 1, in <module>
ImportError: cannot import name 'Text'
我正在使用 Python 3.5
有什么建议吗?
这是 Python 3.5.0 和 3.5.1 的已知问题 - 请参阅https://github.com/python/mypy/issues/1838和https://github.com/awslabs/aws-encryption-sdk-cli/问题/114。正如他们所说,您可以在输入导入周围添加 try/catch 块 - 或者您可以使用 Python 的更新版本。
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句