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

The same problem on my Monterey 12.1:

$ conda create --prefix ./env python=3.8
$ conda activate ./env
$ conda install -c apple tensorflow-deps
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://conda.anaconda.org/conda-forge/osx-64
  - https://conda.anaconda.org/conda-forge/noarch
  - https://conda.anaconda.org/main/osx-64
  - https://conda.anaconda.org/main/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.
          

I'm having the same issue. I've been through multiple different approaches. MacAir M1, 2020, BigSur 11.6

conda install -c apple tensorflow-deps
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.

Check for any old existing python installation. In my case it was anaconda. You can put command "which python" to check if it points to miniforge python installation, if not then delete the installation is it pointing to.

Restart the terminal and install miniforge or update it with "bash filename_miniforge -u". Check "which python", if it doesn't point to miniforge then restart terminal

You must be good to go for creating environment and next steps to install tf

On my side, I had the problem and look a little before installing manually or installing miniforge.

The thing is that conda from miniconda or anaconda looks by default on osx-64 and noarch architecture and not osx-arm64 (which is the architecture on which the package has been made).

So just parameterize your conda (in ~/.condarc for me) by adding those lines:

subdirs:
  - osx-arm64
  - osx-64
  - noarch

If you want conda to go looking in osx-arm64 by default, change also the value of subdir and set it with osx-arm64 (same file):

subdir: osx-arm64

Hope it helps.

Hi ShamoX, could you please show me how do I add the lines into /.condarc? I can't find it anywhere in my Finder... I downloaded anaconda, miniforge, literally everything and still stuck on this problem :( Thank you...

Hello everyone,

I was facing this exact issue when trying to run a gesture detection library. Problem was that the platform version reported by Anaconda was not the arm one, but rather 'macOS-10.16-x86_64-i386-64bit' and tensorflow-deps is only available for osx-arm64. I fixed this by doing a clean install for Anaconda (https://docs.anaconda.com/anaconda/install/uninstall/) and then followed the steps on https://developer.apple.com/metal/tensorflow-plugin/ to install Tensorflow.

Version reported after clean install: 'macOS-13.0.1-arm64-arm-64bit'

I was then able to install tensorflow-deps, tensorflow-macos & tensorflow-metal. Tensorflow implementation worked after this.

Credit: https://www.youtube.com/watch?v=BEUU-icPg78

P.D.: I am really new to programming so please forgive me if any technical info is inaccurate.

This site contains user submitted content, comments and opinions and is for informational purposes only. Apple disclaims any and all liability for the acts, omissions and conduct of any third parties in connection with or related to your use of the site. All postings and use of the content on this site are subject to the Apple Developer Forums Participation Agreement and Apple provided code is subject to the Apple Sample Code License.
  • Forums
  • Terms of Use Privacy Policy License Agreements