解决import tensorflow_hub错误: __new__() got an unexpected keyword argument 'serialized_options'

版权声明:本文为博主原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。
本文链接: https://blog.csdn.net/BigDream123/article/details/99610068

更新tensorflow后发现import tensorflow后出现 __new__() got an unexpected keyword argument 'serialized_options'错误,百度发现是protobuf版本与TensorFlow版本不匹配的问题,于是直接pip修改protobuf也出现连接错误,最后修改了源才成功

pip uninstall protobuf
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple -U protobuf

猜你喜欢

转载自blog.csdn.net/BigDream123/article/details/99610068