'A module that was compiled using NumPy 1.x cannot be run in NumPy 2.x'
@devsingh05▲ 13 net votes
A compiled package (older torch, opencv, pandas, scikit-learn, etc.) was built against NumPy 1 and pip pulled NumPy 2. Either upgrade that package to a release built for NumPy 2, or pin pip install 'numpy<2'. The error names which import triggered it in the traceback. Pin numpy in requirements so the deploy environment resolves the same way as your laptop.