colab中tensorflow 版本

问题:tensorflow中之前默认版本是1,tensorflow中tutor是2版本

解决1.修改sys.path

解决2.加载到drive中

https://stackoom.com/question/3y9ll/%E8%BF%90%E8%A1%8C%E6%97%B6%E9%87%8D%E6%96%B0%E5%90%AF%E5%8A%A8%E5%90%8E-Colab%E7%9A%84TensorFlow-%E6%9B%B4%E6%94%B9%E5%9B%9ETensorflow

解决3:

!pip uninstall tensorflow
!pip install tensorflow2.0.0-beta1
!pip install tensorflow
2.0.0

你可能感兴趣的:(colab中tensorflow 版本)