File tree 1 file changed +17
-2
lines changed
1 file changed +17
-2
lines changed Original file line number Diff line number Diff line change @@ -34,9 +34,24 @@ Why can't ``pip`` find compatible backends on PyPI for Apple silicon Macs?
34
34
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
35
35
36
36
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 .
38
38
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
40
55
41
56
An alternative would be to create a |micromamba |_ environment and install the
42
57
backends individually from `conda-forge <https://prefix.dev/channels/conda-forge/ >`__
You can’t perform that action at this time.
0 commit comments