MacBook Pro 2021 cannot find mlcompute module

Hi,

I met the same issues that posted here: https://developer.apple.com/forums/thread/684263?login=true&page=1#693284022

My mac also cannot find mlcompute module.

Unlike the previous question, I wanna use CPU instead of GPU during training.

I've tried a bunch of methods that I can easily find online, can anyone help me address this? is it a tensorflow-macos or tensorflow-metal bug?

Accepted Reply

tensorflow version: 2.6.0

tensorflow-macos somehow cannot be found too, so I installed this package by SYSTEM_VERSION_COMPAT=0 python -m pip install tensorflow-macos. similarly for tensorflow-metal

  • If the Python you are using is built against pre-macOS 11 SDK, it won't be able to find these 11.0 python packages. We can workaround that by using SYSTEM_VERSION_COMPAT=0 env variable.

Add a Comment

Replies

tensorflow version: 2.6.0

tensorflow-macos somehow cannot be found too, so I installed this package by SYSTEM_VERSION_COMPAT=0 python -m pip install tensorflow-macos. similarly for tensorflow-metal

  • If the Python you are using is built against pre-macOS 11 SDK, it won't be able to find these 11.0 python packages. We can workaround that by using SYSTEM_VERSION_COMPAT=0 env variable.

Add a Comment

I posted this question again because I accepted my own "answers" by mistake. I cannot find a way to delete this post.

  • my replicated post has been deleted (at least I cannot see it....), and I cannot find a way to delete my own replies.... so please if you have any way to solve my issues with tf, post here.

Add a Comment