Skip to content

Commit 4a8a6de

Browse files
Note the namespace differences
1 parent b5a4675 commit 4a8a6de

File tree

1 file changed

+17
-2
lines changed

1 file changed

+17
-2
lines changed

docs/faq.rst

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,24 @@ Why can't ``pip`` find compatible backends on PyPI for Apple silicon Macs?
3434
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
3535

3636
Unfortunately, at this time |tensorflow Issue 57185|_ of ``pyhf``'s backends
37-
support wheels for Apple silicon Macs (``osx-arm64``).
37+
support wheels for Apple silicon Macs (``osx-arm64``) under common names on PyPI.
3838
If you are installing wheels from PyPI on an ``osx-arm64`` machine, you will only
39-
be able to use a subset of all the backends.
39+
be able to use a subset of all the backends through the provided extras.
40+
41+
To install the dependencies for the TensorFlow backend you'll need to manually
42+
specify that ``tensorflow-macos`` is required
43+
44+
.. code-block:: console
45+
46+
python -m pip install pyhf tensorflow-macos tensorflow-probability
47+
48+
Similarly, if you want to install the TensorFlow backend dependencies along with the
49+
other backends included in the ``[backends]`` extra you'll need to specify the extras
50+
as well
51+
52+
.. code-block:: console
53+
54+
python -m pip install 'pyhf[torch,jax,minuit]' tensorflow-macos tensorflow-probability
4055
4156
An alternative would be to create a |micromamba|_ environment and install the
4257
backends individually from `conda-forge <https://prefix.dev/channels/conda-forge/>`__

0 commit comments

Comments
 (0)