Skip to content

Commit ce3570d

Browse files
authored
Need include jax in requirements.txt after all (#994)
The requirements of tensorflow and tf-keras _should_ bring in a compatible jax version; however, in some environments, it doesn't happen as expected, and `pip install -r requirements.txt` results in a confusing error about trying to use NumPy 2 with a package built for NumPy 1.
1 parent 0ed525e commit ce3570d

2 files changed

Lines changed: 14 additions & 1 deletion

File tree

requirements.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
cirq-core<=1.5.0
2020
cirq-google<=1.5.0
2121
contourpy<=1.3.2
22+
jax>=0.5,<0.6
2223
numpy<=2.2.6
2324
scipy<1.16
2425
sympy==1.14

requirements.txt

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,10 @@ ipython-genutils==0.2.0
8282
# via nbformat
8383
isort==5.13.2
8484
# via pylint
85+
jax==0.5.3
86+
# via -r requirements.in
87+
jaxlib==0.5.3
88+
# via jax
8589
jinja2==3.1.6
8690
# via tensorflow-docs
8791
jsonschema==4.26.0
@@ -116,6 +120,8 @@ mdurl==0.1.2
116120
# via markdown-it-py
117121
ml-dtypes==0.5.4
118122
# via
123+
# jax
124+
# jaxlib
119125
# keras
120126
# tensorflow
121127
mpmath==1.3.0
@@ -139,6 +145,8 @@ numpy==2.0.2
139145
# cirq-core
140146
# contourpy
141147
# h5py
148+
# jax
149+
# jaxlib
142150
# keras
143151
# matplotlib
144152
# ml-dtypes
@@ -148,7 +156,9 @@ numpy==2.0.2
148156
# tensorflow
149157
# typedunits
150158
opt-einsum==3.4.0
151-
# via tensorflow
159+
# via
160+
# jax
161+
# tensorflow
152162
optree==0.18.0
153163
# via keras
154164
packaging==26.0
@@ -227,6 +237,8 @@ scipy==1.15.3
227237
# via
228238
# -r requirements.in
229239
# cirq-core
240+
# jax
241+
# jaxlib
230242
setuptools==75.0.0
231243
# via
232244
# tensorboard

0 commit comments

Comments
 (0)