SyntaxError: future feature google_type_annotations is not defined [closed]

半城伤御伤魂 提交于 2021-01-28 02:03:24

问题


from __future__ import google_type_annotations

I installed python 3.7 as it was suggested in this solution.

I get the following error when I run the file.

Traceback (most recent call last):
File "run_classifier_with_tfhub.py", line 21, in <module>
import classifier_utils
File "/ALBERT/classifier_utils.py", line 19
from __future__ import google_type_annotations
^
SyntaxError: future feature google_type_annotations is not defined

来源:https://stackoverflow.com/questions/59369532/syntaxerror-future-feature-google-type-annotations-is-not-defined

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!