Centos 7 离线安装TensorFlow1.14.0依赖整理

安装的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坑太多…

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值