tensorflow - 警告 : no files found matching when I make a building wheel (Tensorflow)

标签 tensorflow python-wheel

当我制作建筑轮子时,我收到了这些警告。这些是可忽略的还是对这些警告有任何想法?

警告:在目录“*”下找不到匹配“*.dll”的文件 警告:在目录“*”下找不到与“*.lib”匹配的文件 警告:在目录“tensorflow/include/tensorflow”下找不到匹配“*.h”的文件 警告:在目录“tensorflow/include/Eigen”下找不到匹配“*”的文件 警告:在“tensorflow/include/external”目录下找不到与“*”匹配的文件 警告:在目录“tensorflow/include/google”下找不到与“*.h”匹配的文件 警告:在目录“tensorflow/include/third_party”下找不到匹配“*”的文件 警告:在目录“tensorflow/include/unsupported”下找不到匹配“*”的文件

最佳答案

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

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

关于tensorflow - 警告 : no files found matching when I make a building wheel (Tensorflow),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45854681/

相关文章:

python - sdist/bdist_wheel 在 Linux 中不包含 pyc,但在 Windows 中包含

python - 'pip setup.py bdist_wheel' 不再构建强制非纯轮子

python - 让 pip 忽略现有的轮子

python - AttributeError : module 'tensorflow' has no attribute 'compat' when loading tf. compat.v1.train.SessionRunHook

python - tensorflow 使用占位符 vs tf.convert_to_tensor() 将 numpy 数组传递给图形

tensorflow - SSD Inception v2。 VGG16 特征提取器是否被 Inception v2 取代?

pandas - numpy 数组的维度不匹配

python - 在安装构建依赖项之前检查 PyPI 上是否存在 Python 轮

tensorflow - 当步幅大于1时,SAME填充的行为是什么?

java - 如何分配多维输出缓冲区来提供 Android Tflite 的 interpreter.run()?