[MacPorts] #62570: py-tensorflow: pip whl is not a supported wheel on this platform.

MacPorts noreply at macports.org
Sat Mar 27 11:25:32 UTC 2021


#62570: py-tensorflow: pip whl is not a supported wheel on this platform.
----------------------------+--------------------
  Reporter:  essandess      |      Owner:  (none)
      Type:  defect         |     Status:  new
  Priority:  Normal         |  Milestone:
 Component:  ports          |    Version:  2.6.4
Resolution:                 |   Keywords:
      Port:  py-tensorflow  |
----------------------------+--------------------

Comment (by cjones051073):

 Replying to [comment:6 essandess]:
 > Replying to [comment:4 cjones051073]:
 > > OK, so you are on macOS10.15. Macports configures things to use the
 10.15 SDK, but it appears bazel is ignoring this and picking the 11.0 SDK
 you must also have installed
 > >
 > > {{{
 > > :info:build     APPLE_SDK_PLATFORM=MacOSX \
 > > :info:build     APPLE_SDK_VERSION_OVERRIDE=11.1 \
 > > }}}
 > >
 > > I've had problems with bazel picking the SDK badly in the past. We
 need to experiment with passing the correct SDK to bazel somehow...
 >
 > Oh, maybe {{{sudo xcode-select --switch
 /Library/Developer/CommandLineTools}}} will make a difference. I'll try
 and check back in after many, many hours of tensorflow building.

 I doubt it will help as bazel does its own picking of the SDK internally.

 Note, you don't have to wait for the entire build to run to know if it
 will fail. Just start the build in verbose mode and check to see what SDK
 is being used in messages like

 {{{
 :info:build   exec env - \
 :info:build     APPLE_SDK_PLATFORM=MacOSX \
 :info:build     APPLE_SDK_VERSION_OVERRIDE=11.1 \
 :info:build
 PATH=/opt/local/bin:/opt/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin \
 :info:build     XCODE_VERSION_OVERRIDE=12.4.0.12D4e \
 :info:build   external/local_config_cc/wrapped_clang ....
 }}}

 If it still says SDK 11.1 then you know its still a problem.

-- 
Ticket URL: <https://trac.macports.org/ticket/62570#comment:8>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list