ERROR: Failed building wheel for numpy

I tried to put all possible numpy versions in the requirments.txt file, with no success.
Any help will be appreciated.

Please share a link to your public github repo.

  • What is the exact error message?
  • Which Python version was used for local development?
  • Which Python version was selected on streamlit cloud?
        note: This error originates from a subprocess, and is likely not a problem with pip.
        ERROR: Failed building wheel for numpy
      Failed to build numpy
1. ERROR: Could not build wheels for numpy, which is required to install pyproject.toml-based projects.
2. Python 3.8.10
3. I think 3.11
Many thanks!

      [end of output]

I think that is the reason. Your pip package versions are based on 3.8, but your app runs on 3.11 on streamlit cloud, either

  • remove all versions from the requirements, or
  • test locally with a clean 3.11. python environment, or
  • switch cloud to 3.8. python