警告:我在制作建筑轮时找不到匹配的文件(Tensorflow)

时间:2017-08-24 06:45:36

标签: tensorflow python-wheel

当我制作建筑轮时,我会收到这些警告。这些警告是否可以忽略或任何想法?

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'

1 个答案:

答案 0 :(得分:0)

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

尽管有类似的警告,但我的安装仍然有效 我不得不搬出构建目录 在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