protobuf requires Python ‘>=3.7‘ but the running Python is 3.6.5

最近做深度学习在安装TensorFlow的时候就遇到了问题,因为论文中的实验很多用的是低版本的TensorFlow,如果你的python版本为3.6,而安装TensorFlow1.13.1时可能会报如下错误:

protobuf requires Python '>=3.7' but the running Python is 3.6.5 

根据网上的解决方法,先更新pip,即

python -m pip install --upgrade pip

大多数人做完这一步再重新安装TensorFlow就解决了,但我还是不行。报这个错误

AttributeError: 'NoneType' object has no attribute 'bytes'

 后来网上找到了这个安装方法。

python -m pip install -U --force-reinstall pip 成功更新!

再安装TensorFlow,成功!

你可能感兴趣的:(python,深度学习,人工智能)