python2.7 import tensorflow 出现 SyntaxError: invalid syntax 错误
今天跑一个python2.7+tensorflow1.10的代码的时候,import tensorflow 出现 SyntaxError: invalid syntax 错误。
问题原因:
https://github.com/protocolbuffers/protobuf 版本问题
解决方法
pip install protobuf==3.17.3
今天跑一个python2.7+tensorflow1.10的代码的时候,import tensorflow 出现 SyntaxError: invalid syntax 错误。
问题原因:
https://github.com/protocolbuffers/protobuf 版本问题
解决方法
pip install protobuf==3.17.3