tensorflow安装问题 [英] tensorflow installation problems

查看:37
本文介绍了tensorflow安装问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试在我的 ubuntu 14.04 64 位机器上安装 tensorflow:

I tried installing tensorflow on my ubuntu 14.04 64bit machine:

sudo pip2 install --upgrade https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.6.0-cp27-none-linux_x86_64.whl

对于python 2.7

for python 2.7

当我在控制台中运行 import tensorflow as tf 时出现错误

When I run import tensorflow as tf in the console I get error

导入张量流时出错.除非你使用 bazel,否则你应该不要尝试从其源目录导入 tensorflow;请退出tensorflow 源代码树,并从

Error importing tensorflow. Unless you are using bazel, you should not try to import tensorflow from its source directory; please exit the tensorflow source tree, and relaunch your python interpreter from there.

Google 没有对此提供好的答案,您有什么想法吗?

Google didn't provide a good answer to this, any thoughts?

推荐答案

问题是你的tensorflow安装版本和环境配置.我也遇到了同样的问题,因为我为 Python 3.5 版安装了 tensorflow,而我的系统有 3.6.

The problem is with your tensorflow installation version and environmental configuration. I have also faced same issue, as I had installed tensorflow for Python version 3.5 while my system has 3.6.

为您的安装选择正确的轮子.https://pypi.python.org/pypi/tensorflow

Select the correct wheel for your installation. https://pypi.python.org/pypi/tensorflow

它应该可以工作.

这篇关于tensorflow安装问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆