admin管理员组文章数量:1650964
成功解决SyntaxError: future feature annotations is not defined
目录
解决问题
解决思路
解决方法
T1、Anaconda下安装python3.7
T2、临时将以下注释掉也可以
解决问题
SyntaxError: future feature annotations is not defined
解决思路
语法错误:没有定义future feature注释
解决方法
实际上是python版本不对,该语法需要在python3.7以上,而当前版本在python3.6所以导致此错误!
T1、Anaconda下安装python3.7
conda install python==3.7.0
T2、临时将以下注释掉也可以
如果因为无法及时安装,临时将以下注释掉也可以运行当前代码
# from __future__ import annotations
本文标签: futureSyntaxErrorfeaturedefinedannotations
版权声明:本文标题:成功解决SyntaxError: future feature annotations is not defined 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:https://m.elefans.com/xitong/1729530844a1204783.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论