【问题标题】:Warning: no files found matching when I make a building wheel (Tensorflow)警告:我制作积木轮时找不到匹配的文件 (Tensorflow)
【发布时间】:2026-02-14 13:10:01
【问题描述】:

当我制作积木轮时,我会收到这些警告。这些是可忽略的还是对这些警告有任何想法?

warning: no files found matching '*.dll' under directory '*' warning: no files found matching '*.lib' under directory '*' warning: no files found matching '*.h' under directory 'tensorflow/include/tensorflow' warning: no files found matching '*' under directory 'tensorflow/include/Eigen' warning: no files found matching '*' under directory 'tensorflow/include/external' warning: no files found matching '*.h' under directory 'tensorflow/include/google' warning: no files found matching '*' under directory 'tensorflow/include/third_party' warning: no files found matching '*' under directory 'tensorflow/include/unsupported'

【问题讨论】:

  • 你想做什么?安装 TF?
  • @Engine 是的。这些是关键目录吗?
  • 你是怎么安装的,你的操作系统是什么?
  • @Engine 这是 ubuntu 16.03 LTS,抱歉回答晚了。
  • 我有同样的问题,然后我得到“___.whl is not a supported wheel on this platform.”当我尝试安装它时。

标签: tensorflow python-wheel


【解决方案1】:

尝试安装*并退出构建目录。 有时警告只是警告。

尽管出现了类似的警告,但我的安装仍然有效 我不得不移出构建目录 在python中成功导入tensorflow。

尝试在构建目录中导入 tensorflow 时出现以下错误:

Python 3.8.8 (default, Feb 24 2021, 21:46:12) 
[GCC 7.3.0] :: Anaconda, Inc. on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import tensorflow as tf
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "~/tensorflow/tensorflow/__init__.py", line 24, in <module>
    from tensorflow.python import pywrap_tensorflow  # pylint: disable=unused-import
  File "~/tensorflow/tensorflow/python/__init__.py", line 40, in <module>
    from tensorflow.python.eager import context
  File "~/tensorflow/tensorflow/python/eager/context.py", line 32, in <module>
    from tensorflow.core.framework import function_pb2
ImportError: cannot import name 'function_pb2' from 'tensorflow.core.framework' (unknown location)

感谢 gitmeory 的 Saifullah3396 帮助解决了这个问题。

以下是我收到的关于似乎可以工作的*的警告。

Sun 21 Mar 2021 07:57:36 PM CDT : === Building wheel
warning: no files found matching 'README'
warning: no files found matching '*.pyd' under directory '*'
warning: no files found matching '*.pyi' under directory '*'
warning: no files found matching '*.pd' under directory '*'
warning: no files found matching '*.dylib' under directory '*'
warning: no files found matching '*.dll' under directory '*'
warning: no files found matching '*.lib' under directory '*'
warning: no files found matching '*.csv' under directory '*'
warning: no files found matching '*.h' under directory 'tensorflow/include/tensorflow'
warning: no files found matching '*.proto' under directory 'tensorflow/include/tensorflow'
warning: no files found matching '*' under directory 'tensorflow/include/third_party'
Sun 21 Mar 2021 07:58:30 PM CDT : === Output wheel file is in: /tmp/tensorflow_pkg

【讨论】:

    最近更新 更多