tensorflow-metal and other Conda packages

Hi there,

I installed tensorflow-metal as per this tutorial.. That installation process seems to have worked fine. However, I'm now having trouble creating new Conda envs. The problem seems to be with the version of Conda -- Miniforge -- which Apple's tutorial instructed me to install.

So, this command:

conda create --name my_env python=3.7 -c defaults -c conda-forge --file requirements/conda.txt

Results in this error:

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

  - keras==2.3.1
  - python=3.7
  - scikit-geometry[version='>=0.1.2']
  - tesserocr[version='>=2.5.1']

Current channels:

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

When I was using Miniconda, I had no problems installing these packages. It's only a problem now that I'm using Miniforge (as per Apple's tutorial).

(My best guess at what's going wrong: this Miniforge installation is only looking for ARM packages, whereas my previous Miniconda installation was looking for x86-64 packages as well. If I'm correct, does that mean I can't use TensorFlow-Metal alongside these x86-64 packages?)

Thanks! Jack

Hi Jack,

That's my understanding as well, miniforge is looking in arm64 packages. Tensorflow-metal is natively built python package for arm64 and would need other arm64 python packages.

Earlier with Miniconda its possible the python3 used is a fat binary (both x86_64 and arm64 slices) which results in it searching for both arm64 and x86_64 packages. You can check the python3 architecture in your miniconda3 installation by :

lipo -info <miniconda3 python>

Thanks

There is no python=3.7 package for macos-arm64 as official python support for Apple Silicon landed only for python>=3.8

When using Miniconda, you are using macos-x86_64 packages using Rossetta.

tensorflow-metal and other Conda packages
 
 
Q