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版本的安裝過程則相對復(fù)雜,除了要考慮電腦是否支持GPU版本(主要是看顯卡)外,還有cuda等的安裝以及版本號對應(yīng)的問題
若是安裝過程遇到問題,可以聯(lián)系作者。
如何查看tensorflow的版本與安裝地址?
使用命令:pip show tensorflow即可,它將顯示已經(jīng)安裝的tensorflow包的詳細(xì)信息,我的顯示結(jié)果如下: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的位置。