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])))"
TensorFlow安装指南
本文详细介绍如何使用Virtualenv和系统方式安装TensorFlow,包括仅支持CPU的版本和同时支持GPU的版本。通过pip命令进行升级安装,并提供验证安装是否成功的Python代码。
298

被折叠的 条评论
为什么被折叠?



