d2l-ai / d2l-en

Interactive deep learning book with multi-framework code, math, and discussions. Adopted at 500 universities from 70 countries including Stanford, MIT, Harvard, and Cambridge.
https://D2L.ai
Other
23.07k stars 4.26k forks source link

fix: Update setup.py to support Python 3.12.4 and NumPy 2.0.0. #2613

Open slewsys opened 1 month ago

slewsys commented 1 month ago

Update setup.py for Python 3.12.4 and NumPy 2.0.0.
This PR is compatible with the latest iterations of Python v3.10, v3.11 and v3.12. Python v3.9 is not supported.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.