tensorflow-deps - PackagesNotFoundError

Hi all,

I'm using my new M1 Pro with the latest Mac OS 12.1 and I'm experiencing issues with installing tensorflow.

I've created an environment and have it activated.

I tried

conda install -c apple tensorflow-deps

but returned with

Collecting package metadata (current_repodata.json): done Solving environment: failed with initial frozen solve. Retrying with flexible solve. Collecting package metadata (repodata.json): done Solving environment: failed with initial frozen solve. Retrying with flexible solve.

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

  • tensorflow-deps

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

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.

Note: you may need to restart the kernel to use updated packages.

Did anyone have the same issue and any advice to address this?

Thanks, Andrew

What helped me is just updating conda right before installing tensorflow-deps. This is:

bash ~/miniconda.sh -b -p $HOME/miniconda
source ~/miniconda/bin/activate
conda update conda
conda install -c apple tensorflow-deps

For those who encountered this problem, check if your anaconda installed in your silicon mac is arm64 version rather than the x86_64 version. You can do this by running conda info. One of the lines shall say __archspec=1=arm64, if you saw __archspec=1=x86_64, running conda install -c apple *** makes conda looking for the x86_64 version of *** pacakge (fortunately tensorflow-deps only has arm64 version otherwise many of us would keep living with the mismatched version of tensorflow-deps on our apple silicon).

I saw some replies saying after trying miniforge/miniconda, the installation works. This is because when they switched to miniforge/miniconda, they installed it with the correct __archspec.

If you see your anaconda installed with mismatch archictecture, go to bottom of https://www.anaconda.com/products/distribution#macos to grab the right one.

P.S. If the way you installed anaconda on your apple silicon mac is by simply googling, it's highly possible you installed the wrong one. Anaconda installation tutorial ignores what platform we visit its page, and just gives x86_64 mac installation instruction by default :(

Thank you so much! My conda version was for x86_64. conda install -c apple is still not working but pip install is working, so I can import tensorflow library now.

Try "conda install conda-forge::tensorflow" it worked for me on Monterey

tensorflow-deps - PackagesNotFoundError
 
 
Q