安装的TensorFlow版本是:1.14.0
以Py3.6.0环境为基础,Anaconda下载链接:https://mirrors.tuna.tsinghua.edu.cn/anaconda/archive/Anaconda3-4.3.1-Linux-x86_64.sh
TensorFlow依赖包的下载链接:https://download.youkuaiyun.com/download/Student_xx/52390874
需要安装的依赖包顺序 以下列举出的分别是包的前缀:
zipp
typing_extensions
importlib_metadata
cached_property
setuptools
Markdown
Werkzeug(此包安装时报错可忽略)
numpy
h5py
protobuf
absl_py
grpcio
tensorboard
tensorflow_estimator
Keras_Applications
Keras_Preprocessing
wheel
astor
google_pasta
termcolor
gast
wrapt
six
tensorflow-1.14.0
如果碰到包安装不上的 以wrapt为例 执行:
pip install -U --ignore-installed wrapt
安装完成后我们进行一下验证,TensorFlow环境是否成功
在命令行中输入python
#python
进入python编译模式
1. >>>import tensorflow as tf
2. >>>sess = tf.Session()
3. >>>a = tf.constant(10)
4. >>>b = tf.constant(22)
5. >>>print(sess.run(a + b))
6. 32
出现32表示我们的TensorFlow安装成功
另外Py3.7的安装此版本的TensorFlow坑太多…
这篇博客详细介绍了如何在Python 3.6环境下安装TensorFlow 1.14.0。首先,提供了Anaconda的下载链接,然后列出了TensorFlow依赖的各个包及下载链接,并给出了安装顺序。在安装过程中,如果遇到问题,如Werkzeug报错,可以忽略。安装完成后,通过Python交互模式验证TensorFlow是否安装成功,通过运行简单的加法操作并打印结果来检查。需要注意的是,使用Python 3.7可能会遇到较多问题。
8676

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



