Skip to content

Commit

Permalink
Note the namespace differences
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewfeickert committed Feb 16, 2023
1 parent 123d10c commit a02c668
Showing 1 changed file with 17 additions and 2 deletions.
19 changes: 17 additions & 2 deletions docs/faq.rst
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,24 @@ Why can't ``pip`` find compatible backends on PyPI for Apple silicon Macs?
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Unfortunately, at this time |tensorflow Issue 57185|_ of ``pyhf``'s backends
support wheels for Apple silicon Macs (``osx-arm64``).
support wheels for Apple silicon Macs (``osx-arm64``) under common names on PyPI.
If you are installing wheels from PyPI on an ``osx-arm64`` machine, you will only
be able to use a subset of all the backends.
be able to use a subset of all the backends through the provided extras.

To install the dependencies for the TensorFlow backend you'll need to manually
specify that ``tensorflow-macos`` is required

.. code-block:: console
python -m pip install pyhf tensorflow-macos tensorflow-probability
Similarly, if you want to install the TensorFlow backend dependencies along with the
other backends included in the ``[backends]`` extra you'll need to specify the extras
as well

.. code-block:: console
python -m pip install 'pyhf[torch,jax,minuit]' tensorflow-macos tensorflow-probability
An alternative would be to create a |micromamba|_ environment and install the
backends individually from `conda-forge <https://prefix.dev/channels/conda-forge/>`__
Expand Down

0 comments on commit a02c668

Please sign in to comment.