I have stated numpy==1.25.1 in my requirements.txt file and it is getting installed as well while deploying my app.
'''Collecting numpy==1.25.1
Downloading numpy-1.25.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (17.7 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 17.7/17.7 MB 225.3 MB/s eta 0:00:00[2023-07-21 06:37:21.081699'''
But while trying to install lap==0.4.0, it is giving me the following error
'''Building wheel for lap (setup.py): started
Building wheel for lap (setup.py): finished with status 'error'
error: subprocess-exited-with-error
× python setup.py bdist_wheel did not run successfully.
│ exit code: 1
╰─> [13 lines of output]
Partial import of lap during the build process.
Traceback (most recent call last):
File "/tmp/pip-install-8tneoahv/lap_ffe670863c2c44caa4f276a3a0edfa0e/setup.py", line 127, in get_numpy_status
import numpy
ModuleNotFoundError: No module named 'numpy'
Traceback (most recent call last):
File "<string>", line 2, in <module>
File "<pip-setuptools-caller>", line 34, in <module>
File "/tmp/pip-install-8tneoahv/lap_ffe670863c2c44caa4f276a3a0edfa0e/setup.py", line 236, in <module>
setup_package()
File "/tmp/pip-install-8tneoahv/lap_ffe670863c2c44caa4f276a3a0edfa0e/setup.py", line 220, in setup_package
raise ImportError('lap requires numpy, '
ImportError: lap requires numpy, please "pip install numpy".'''
I tried multiple versions of numpy but no solution as of now