更新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