应该是安装的python版本过低,安装python3.6.2以上版本,参考 AttAttributeError: module ‘typing‘ has no attribute ‘NoReturn‘_XSC路在脚下的博客-CSDN博客 问题描述:在Python版本为3.6.0的虚拟环境中安装tensorflow-gpu==1.4.1的时候报错AttAttributeError: module ‘typing’ has no attribute ‘NoReturn’原因分析:Python版本过低,Python在3.6后更新变化很大解决方案:安装较新版本的Python,3.6.2以上即可解决问题... https://blog.csdn.net/weixin_48236264/article/details/119144286