tensorflow on mac M1

I have a macbook air M1 2020 with macos 12.2 Monterey. I bought it in order to be able to speed up deep learning with the tensorflow GPU extension for M1 machines. I have tried EVERYTHING. Gone through countless tutorials and installed several packages (miniforge, updated python, conda on top of miniforge). Still, when I try to run the command

conda install -c apple tensorflow-deps==2.8.0

it doesn't work and gives me this error message:

PackagesNotFoundError: The following packages are not available from current channels:

 - tensorflow-deps==2.8.0

Current channels:

 - https://conda.anaconda.org/apple/osx-64
 - https://conda.anaconda.org/apple/noarch
 - https://repo.anaconda.com/pkgs/main/osx-64
 - https://repo.anaconda.com/pkgs/main/noarch
 - https://repo.anaconda.com/pkgs/r/osx-64
 - https://repo.anaconda.com/pkgs/r/noarch
 - https://conda.anaconda.org/conda-forge/osx-64
 - https://conda.anaconda.org/conda-forge/noarch

To search for alternate channels that may provide the conda package you're
looking for, navigate to

  https://anaconda.org

and use the search bar at the top of the page.

Is there anyone who has managed to solve this?

Replies

Hi @hello____world!

Are you still having this issue? I can't reproduce it locally. My gut feeling would be that there's something gone wrong with installing multiple conda flavors and possibly the conda command itself might be pointing to a different conda you are expecting. If this is still an issue I would try to remove all conda versions and their configurations including any notes the conda init may have added to your shell initialization scripts and try to start from a clean slate and follow the steps here: https://developer.apple.com/metal/tensorflow-plugin/