Deploying Streamlit and getting Error with non zero exit code

Successfully installed numpy-1.20.2 pandas-1.2.4 plotly-4.14.3 python-dateutil-2.8.1 pytz-2021.1 retrying-1.3.3 scipy-1.6.3 six-1.16.0
[manager] Python dependencies were installed from /app/opensource/requirements.txt using pip.
[manager] installer returned a non-zero exit code
[manager] Error during processing dependencies! Please fix the error and push an update, or

Hi @sagar1412, welcome to the Streamlit community!! :tada: :partying_face:

You’re running into the error because you’re trying to install Python packages using packages.txt. Any Python packages to be installed from PyPi should instead be in requirements.txt. To get it working:

  1. Delete your packages.txt

  2. Replace the contents of your requirements.txt with the following:

    plotly
    scipy
    pandas
    Flask
    flask-cors
    pyforest
    
  3. Deploy your app on Streamlit Sharing! :balloon:

Once you’ve followed all the :point_up: steps, your deployed app should look like this:

Let us know if this helps.

Happy Streamlit-ing! :balloon:
Snehan

Hi @snehankekre, Thank you for helping me debugging the issue.

1 Like