安装 Tensorflow Keras Opencv
# For a specific version:
!pip install tensorflow-gpu==1.5.0rc0
# To determine which version you're using:
!pip show tensorflow-gpu
# For the current version:
!pip install --upgrade tensorflow-gpu
# For the latest nightly build:
!pip install tf-nightly-gpu
!pip install -U tensorflow-gpu
!pip install -U keras
!pip install opencv-contrib-python --upgrade
!pip install -U libarchive
Install GraphViz & PyDot
!pip install -U pydot graphviz
!pip install -U xgboost
import tensorflow as tf
tf.keras # Keras 为 TensorFlow 提供了 API