gpt4 book ai didi

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

转载 作者:行者123 更新时间:2023-12-05 06:38:33 26 4
gpt4 key购买 nike

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

警告:在目录“*”下找不到匹配“*.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/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com