I deployed Streamlit via GitHub and found an error:
× Running setup.py install for lap 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-9d2mn9h6/lap_2426d6716df14c8d80cee36a28b45779/setup.py”, line 127, in get_numpy_status
ModuleNotFoundError: No module named ‘numpy’
Even though in the requirements file.txt the numpy package has been installed, I attach here also the contents of the requirements file.txt
The problem is the lap package. It is quite old and the setup requires numpy to be installed prior to running pip. Unfortunately this will not work on streamlit cloud, because there is only a single step installation possible.
However there is a newer branch of lap on github which seems to fix this issue. Therefore you could replace the above line in requirements.txt with the line below and try again: