Skip to content

Commit 2e076b6

Browse files
authored
Constrain package vesions for Python 3.10 (#1003)
A `pip install -r requirements.txt` has started failing for me in Python 3.10 because the latest versions of some transitive dependencies have dropped support for Python 3.10 (or require Python 3.11+ for their build environments). Constraining Numpy, Contourpy and Scipy resolves the problem.
1 parent e85745c commit 2e076b6

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

requirements.txt

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
11
absl-py
22
cirq-core~=1.0
3-
numpy>=1.26.0
3+
4+
# Constrain some versions because they dropped support for Python 3.10.
5+
# Countourpy is pulled in by Matplotlib, which is pulled in by Cirq.
6+
contourpy<1.3.0; python_version <= '3.10'
7+
numpy<2.0.0; python_version <= '3.10'
8+
numpy>=1.26.0; python_version > '3.10'
9+
scipy<1.15.0; python_version <= '3.10'

0 commit comments

Comments
 (0)