python 安装tensorflow模块_安装TensorFlow模块

本文介绍了在Linux系统(CentOS7)中使用Python2.7安装TensorFlow 0.5.0版本的步骤,包括下载whl文件并使用pip安装,以及成功导入TensorFlow模块的验证过程。
摘要由CSDN通过智能技术生成

Linux下安装TensorFlow模块

准备:

centos7

python2.7

tensorflow-0.5.0-cp27-none-linux_x86_64.whl

安装:

[root@localhost ~]# pip install tensorflow-0.5.0-cp27-none-linux_x86_64.whl

DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7.

Processing ./tensorflow-0.5.0-cp27-none-linux_x86_64.whl

Collecting six>=1.10.0 (from tensorflow==0.5.0)

Downloading https://files.pythonhosted.org/packages/73/fb/00a976f728d0d1fecfe898238ce23f502a721c0ac0ecfedb80e0d88c64e9/six-1.12.0-py2.py3-none-any.whl

Collecting numpy>=1.9.2 (from tensorflow==0.5.0)

Downloading https://files.pythonhosted.org/packages/1f/c7/198496417c9c2f6226616cff7dedf2115a4f4d0276613bab842ec8ac1e23/numpy-1.16.4-cp27-cp27mu-manylinux1_x86_64.whl (17.0MB)

|████████████████████████████████| 17.0MB 182kB/s

Installing collected packages: six, numpy, tensorflow

Successfully installed numpy-1.16.4 six-1.12.0 tensorflow-0.5.0

调用TensorFlow模块:

[root@localhost ~]# python

Python 2.7.5 (default, Nov 20 2015, 02:00:19)

[GCC 4.8.5 20150623 (Red Hat 4.8.5-4)] on linux2

Type "help", "copyright", "credits" or "license" for more information.

>>> import tensorflow as tf

>>>

这样就算成功了。

附:

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值