安装Tensorflow#


# Current stable release for CPU-only
pip install tensorflow

# Preview nightly build for CPU-only (unstable)
pip install tf-nightly

# Install TensorFlow 2.0 Beta
pip install tensorflow==2.0.0-beta1

如果报错,那么请升级您的pip,numpy和matplotlib


python -m install --upgrade pip

pip install -U numpy

pip install -U matplotlib