安装的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.csdn.net/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坑太多…



