Git Product home page Git Product logo

tensorflow-macosx-build's People

Stargazers

 avatar

Watchers

 avatar  avatar

tensorflow-macosx-build's Issues

请教一个问题,编译成功后安装whl文件失败。

打扰了,我在编译 tensorflow 时遇到了一些问题,想要请教您一下。

平台 MacBook Pro 16inch
系统 11.2.3
Python 3.9.4
tensorflow 2.5.0 rc1

因为通过pip安装的tensorflow不支持AVX,我就想着自己编译tensorflow。废了功夫编译了几次,都无法安装。目前的提示是
ERROR: tensorflow-2.5.0rc1-cp39-cp39-macosx_110_0_x86_64.whl is not a supported wheel on this platform.
比较奇怪的是,在生成 whl 文件时,以下这个日志里面有三点我不理解的地方。因为我对python不熟,最近是想开始学习tensorflow。这些问题可能是python中常见的问题???我没搜索到相关的答案。
一、日志中出现了一些warning,提示一些文件找不到。这个可能不影响最终的whl文件的生成,网上其他人的教程中也出现了类似的,单没给出任何解释。我想问一下,您是否知道这是怎么回事?
二、This wheel needs a higher macOS version than the version your Python interpreter is compiled against. To silence this warning, set MACOSX_DEPLOYMENT_TARGET to at least 11_0 or recreate these files with lower MACOSX_DEPLOYMENT_TARGET:
这个警告与 build/bdist.macosx-10.9-x86_64/wheel/xxxxxxxx 是我最不解的地方。因为我的系统是 11.2, 为何会产生bdist.macosx-10.9-x86_64 这个文件夹下的文件呢?我花了好久才定位到这个 build 文件夹是在哪。也按照上面这个警告的说明,设置了 MACOSX_DEPLOYMENT_TARGET=11_0,但依旧会出现bdist.macosx-10.9-x86_64。网上的一些例子有出现这样的,也有显示是11.0 的,同样的没有解释。
三、因为第二个问题的缘故,在顺利生成whl文件后,我安装的时候出现红色错误提示
ERROR: tensorflow-2.5.0rc1-cp39-cp39-macosx_110_0_x86_64.whl is not a supported wheel on this platform.
这让我眼中怀疑,编译生成的这个tensorflow难道是适应于 macosx-10.9的吗?

以上三个问题,我也是找了好一圈资料,都没找到答案,不知道您在编译中有没有遇到类似的情况,已经如何解决的。

./bazel-bin/tensorflow/tools/pip_package/build_pip_package ~/Downloads
Mon Apr 19 19:44:48 CST 2021 : === Preparing sources in dir: /var/folders/zz/4cvqh7zs6tqgv1nqzngp4jch0000gn/T/tmp.XXXXXXXXXX.zNfeBGpI
~/Documents/Program/Python/tensorflow-2.5.0-rc1 ~/Documents/Program/Python/tensorflow-2.5.0-rc1
~/Documents/Program/Python/tensorflow-2.5.0-rc1
~/Documents/Program/Python/tensorflow-2.5.0-rc1/bazel-bin/tensorflow/tools/pip_package/build_pip_package.runfiles/org_tensorflow ~/Documents/Program/Python/tensorflow-2.5.0-rc1
~/Documents/Program/Python/tensorflow-2.5.0-rc1
/var/folders/zz/4cvqh7zs6tqgv1nqzngp4jch0000gn/T/tmp.XXXXXXXXXX.zNfeBGpI/tensorflow/include ~/Documents/Program/Python/tensorflow-2.5.0-rc1
~/Documents/Program/Python/tensorflow-2.5.0-rc1
Mon Apr 19 19:45:31 CST 2021 : === 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 '.so.[0-9]' 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'
[WARNING] This wheel needs a higher macOS version than the version your Python interpreter is compiled against. To silence this warning, set MACOSX_DEPLOYMENT_TARGET to at least 11_0 or recreate these files with lower MACOSX_DEPLOYMENT_TARGET:
build/bdist.macosx-10.9-x86_64/wheel/tensorflow/libtensorflow_framework.2.dylib
。。。。。。
build/bdist.macosx-10.9-x86_64/wheel/tensorflow/compiler/tf2xla/ops/_xla_ops.so[WARNING] This wheel needs a higher macOS version than the version your Python interpreter is compiled against. To silence this warning, set MACOSX_DEPLOYMENT_TARGET to at least 11_0 or recreate these files with lower MACOSX_DEPLOYMENT_TARGET:
build/bdist.macosx-10.9-x86_64/wheel/tensorflow/libtensorflow_framework.2.dylib
。。。。。。

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.