Numpy Error

Hi @Victor_Umunna, welcome to the community!! :wave: :partying_face:

The error message from pip in this case isn’t very instructive. The cause of the error can be found by looking at all the downloadable wheel files for numpy==1.22.2 on PyPI.

You’ll notice that the files are built for Python 3.8, 3.9, and 3.10. The default installation of Python on Streamlit Cloud is version 3.7.

Solution

  1. Delete your app on Streamlit Cloud
  2. Click on “New app” from the app dashboard
  3. Enter the GitHub URL of your app
  4. Click on “Advanced settings…”
  5. Select Python 3.8 from the drop down and click “Save”
  6. Once you deploy your app with Python 3.8, you should see a successful install of numpy==1.22.2 in your Cloud logs.

Happy Streamlit-ing! :balloon:
Snehan