pip安装tensorflow pip安装tensorflow总是失败怎么办?

pip安装tensorflow总是失败怎么办?TensorFlow在Windows中的安装首先安装最新版的 Anaconda(>= Python 3.6)Windows R,输入 CMD 打开命令

pip安装tensorflow总是失败怎么办?

TensorFlow在Windows中的安装

  • 首先安装最新版的 Anaconda(>= Python 3.6)
  • Windows R,输入 CMD 打开命令窗,安装 CPU 版本

pip install --upgrade tensorflow

  • GPU版本的安装过程则相对复杂,除了要考虑电脑是否支持GPU版本(主要是看显卡)外,还有cuda等的安装以及版本号对应的问题

若是安装过程遇到问题,可以联系作者。

如何查看tensorflow的版本与安装地址?

使用命令:pip show tensorflow即可,它将显示已经安装的tensorflow包的详细信息,我的显示结果如下:Name: tensorflowVersion:

1.4.0Summary: TensorFlow helps the tensors flowHome-page: https://www.tensorflow.org/Author: Google Inc.Author-email: opensource@google.comLicense: Apache

2.0Location: /usr/lib/python3.6/site-packagesRequires: enum34, six, tensorflow-tensorboard, numpy, wheel, protobuf其中Version是版本号,Location是tensorflow的位置。