安装 Tensorflow:Python - Tensorflow 版本不匹配警告

迪恩科克利

编辑:tensorflow-1.3.0-cp36-cp36m-linux_x86_64.whl现在收到不同的警告。这些似乎要小得多?

2017-11-02 13:31:01.945114: W tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use SSE4.1 instructions, but these are available on your machine and could speed up CPU computations.
2017-11-02 13:31:01.945138: W tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use SSE4.2 instructions, but these are available on your machine and could speed up CPU computations.
2017-11-02 13:31:01.945154: W tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use AVX instructions, but these are available on your machine and could speed up CPU computations.
2017-11-02 13:31:01.945158: W tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use AVX2 instructions, but these are available on your machine and could speed up CPU computations.
2017-11-02 13:31:01.945166: W tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use FMA instructions, but these are available on your machine and could speed up CPU computations.

我在 Ubuntu 17.10 上安装了 Python 3.6.3。我使用以下命令在 virtualenv 中安装了 tensorflow 轮文件

export TF_BINARY_URL=../Downloads/tensorflow-1.4.0-cp36-cp36m-manylinux1_x86_64.whl
pip3 install --upgrade $TF_BINARY_URL

然后运行下面的示例代码来验证安装我收到几个警告

AI/lib/python3.6/importlib/_bootstrap.py:219: RuntimeWarning: compiletime version 3.5 of module 'tensorflow.python.framework.fast_tensor_util' does not match runtime version 3.6
  return f(*args, **kwds)
2017-11-02 12:32:13.054316: I tensorflow/core/platform/cpu_feature_guard.cc:137] Your CPU supports instructions that this TensorFlow binary was not compiled to use: SSE4.1 SSE4.2 AVX AVX2 FMA

示例代码似乎在所有错误之后运行。我应该忽略它们吗?我下载了错误的车轮文件吗?

import tensorflow as tf
hello = tf.constant('Hello, TensorFlow!')
sess = tf.Session()
print(sess.run(hello))
伊姆兰·艾哈迈德·加扎利

正如你在这里看到的 python3.5 TF_Binary_URL 是

https://www.tensorflow.org/install/install_linux#the_url_of_the_tensorflow_python_package这是张量版本 1.3,所以只需检查一下。

本文收集自互联网,转载请注明来源。

如有侵权,请联系[email protected] 删除。

编辑于
0

我来说两句

0条评论
登录后参与评论

相关文章

来自分类Dev

安装Tensorflow

来自分类Dev

Conda,Tensorflow和Keras版本不匹配问题

来自分类Dev

为 Python 3.6.0 安装 Tensorflow

来自分类Dev

安装旧版本的Tensorflow GPU

来自分类Dev

安装了较旧 GPU 版本的 Tensorflow

来自分类Dev

python中的tensorflow版本控制不匹配

来自分类Dev

使用Python 3.5和Anaconda安装Tensorflow

来自分类Dev

如何使用Python 3.8安装TensorFlow

来自分类Dev

如何在Python 3.7上安装TensorFlow

来自分类Dev

使用 virtualenv 为 python 安装 tensorflow 的问题

来自分类Dev

使用setuptools安装tensorflow

来自分类Dev

安装tensorflow后的消息

来自分类Dev

从源代码安装Tensorflow

来自分类Dev

Tensorflow的安装问题

来自分类Dev

在Anaconda上安装Tensorflow

来自分类Dev

从源ImportError安装Tensorflow

来自分类Dev

安装 tensorflow 需要 GPU

来自分类Dev

无法使用pip版本20安装tensorflow,找不到版本?

来自分类Dev

由于不受支持的 python 版本,无法在 Arch Linux 上安装 tensorflow

来自分类Dev

在 ubuntu16.04 上安装 TensorFlow 和很多警告

来自分类Dev

如何在Google Colab上安装Tensorflow的先前版本?

来自分类Dev

我无法通过pip安装Tensorflow版本1.15

来自分类Dev

TensorFlow2继续安装相同版本

来自分类Dev

如何安装最新版本的 tensorflow?

来自分类Dev

tesla c2075 带tensorflow cuda 版本安装

来自分类Dev

pip3 install tensorflow-gpu安装tensorflow版本1.14.0

来自分类Dev

无法安装软件包(python扭曲),因为python版本不匹配

来自分类Dev

在centos 5上安装Tensorflow

来自分类Dev

在Ubuntu 16.04上安装Tensorflow