5种安装tensorflow的方法:
Pip install: Install TensorFlow on your machine, possibly upgrading previously installed Python packages. May impact existing Python programs on your machine.
Virtualenv install: Install TensorFlow in its own directory, not impacting any existing Python programs on your machine.
Anaconda install: Install TensorFlow in its own environment for those running the Anaconda Python distribution. Does not impact existing Python programs on your machine.
Docker install: Run TensorFlow in a Docker container isolated from all other programs on your machine.
Installing from sources: Install TensorFlow by building a pip wheel that you then install using pip.
进入ubuntu系统,进入命令模式(可以按快捷键ctrl+alt+t),在命令输入python命令,查看并确认系统安装python版本为2.7以上(本教程系统为ubuntu14.04,python 版本为2.7.6)。
ubuntu/linux系统下tensorflow的安装
执行上述步骤,确认无误后,在命令窗口输入命令:sudo apt-get install python-pip python-dev,输入密码后按回车执行,输入后会出现一串代码,然后问是否继续,输入y回车。然后可以静待安装完成。
ubuntu/linux系统下tensorflow的安装
如果一切顺利,在大串英文划过后,我们会看到如下的界面:
ubuntu/linux系统下tensorflow的安装
此时就可以安装tensorflow了,指令如下:
$ sudo pip install --upgrade l,静待安装完成即可。若提示网络链接错误可以多试几次以上安装命令。
ubuntu/linux系统下tensorflow的安装
安装完成后,在命令行输入python,进入python编辑界面,在>>后输入:import tensorflow,显示如下界面测试成功
ubuntu/linux系统下tensorflow的安装
Hadoop|
Apache Pig|
Apache Kafka|
Apache Storm|
Impala|
Zookeeper|
SAS|
TensorFlow|
人工智能基础|
Apache Kylin|
Openstack|
Flink|
MapReduce|
大数据|
云计算|
用户登录
还没有账号?立即注册
用户注册
投稿取消
文章分类: |
|
还能输入300字
上传中....