tensorflow安装
官网:https://tensorflow.google.cn/
tensorflow 仅支持 CPU 的最新稳定版 tensorflow-gpu 支持 GPU 的最新稳定版
一、Virtualenv安装:
pip install --upgrade tensorflow
验证安装效果:python -c "import tensorflow as tf;print(tf.reduce_sum(tf.random.normal([1000, 1000])))"
二、系统安装:
pip3 install --upgrade tensorflow
验证安装效果:python3 -c "import tensorflow as tf; print(tf.reduce_sum(tf.random.normal([1000, 1000])))"