I am getting error: "installer returned a non-zero exit code" what does it mean?

If you’re creating a debugging post, please include the following info:

  1. Share the link to the public app (deployed on Community Cloud).
  2. Share the link to your app’s public GitHub repository (including a requirements file).
  3. Share the full text of the error message (not a screenshot).
  4. Share the Streamlit and Python versions.

Hey guys, I am deploying a project which is due tomorrow. I need help to resolve the error ASAP

requirements.txt file
numpy==1.26.1
pandas==2.1.1
matplotlib==3.8.0
seaborn==0.13.2
plotly==5.17.0
streamlit==1.40.2
feature-engine==1.6.1
imbalanced-learn==0.11.0
scikit-learn==1.3.1
xgboost==1.7.6
yellowbrick==1.5
Pillow==10.0.1
streamlit-tree-select==0.0.5

22:06:20] ❗️ installer returned a non-zero exit code

error code:

[ UTC ] Logs for climatetippingpoints.streamlit.app/

────────────────────────────────────────────────────────────────────────────────────────

[22:05:53] 🖥 Provisioning machine...

[22:05:53] 🎛 Preparing system...

[22:05:53] ⛓ Spinning up manager process...

[22:05:53] 🚀 Starting up repository: 'climate_tipping_points', branch: 'main', main module: 'dashboard/climate_energy_dashboard.py'

[22:05:53] 🐙 Cloning repository...

[22:05:56] 🐙 Cloning into '/mount/src/climate_tipping_points'... Warning: Permanently added the ED25519 host key for IP address '140.82.116.4' to the list of known hosts.

[22:05:56] 🐙 Cloned repository!

[22:05:56] 🐙 Pulling code changes from Github...

[22:05:57] 📦 Processing dependencies...

``

──────────────────────────────────────── uv ───────────────────────────────────────────

``

Using uv pip install.

Using Python 3.13.5 environment at /home/adminuser/venv

Resolved 60 packages in 555ms

× Failed to download and buildpillow==10.0.1[2025-07-23 22:06:14.047729]

╰─▶ Build backend failed to determine requirements withbuild_wheel()``

(exit status: 1)

``

[stderr]

Traceback (most recent call last):

File "<string>", line 14, in <module>

requires = get_requires_for_build({})

File

"/home/adminuser/.cache/uv/builds-v0/.tmprqgDYv/lib/python3.13/site-packages/setuptools/build_meta.py",

line 331, in get_requires_for_build_wheel

return self._get_build_requires(config_settings, requirements=[])

~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

File

"/home/adminuser/.cache/uv/builds-v0/.tmprqgDYv/lib/python3.13/site-packages/setuptools/build_meta.py",

line 301, in _get_build_requires

self.run_setup()

~~~~~~~~~~~~~~^^

File

"/home/adminuser/.cache/uv/builds-v0/.tmprqgDYv/lib/python3.13/site-packages/setuptools/build_meta.py",

line 317, in run_setup

exec(code, locals())

~~~~^^^^^^^^^^^^^^^^

File "<string>", line 30, in <module>

File "<string>", line 27, in get_version

KeyError: '__version__'

``

Checking if Streamlit is installed

Installing rich for an improved exception logging

Using uv pip install.

Using Python 3.13.5 environment at /home/adminuser/venv

Resolved 4 packages in 60ms

Prepared [2025-07-23 22:06:14.228759] 1 package[2025-07-23 22:06:14.229135] [2025-07-23 22:06:14.229463] in 45ms[2025-07-23 22:06:14.229801]

Installed [2025-07-23 22:06:14.251481] 4 packages[2025-07-23 22:06:14.251907] [2025-07-23 22:06:14.252283] in 20ms[2025-07-23 22:06:14.252635]

[2025-07-23 22:06:14.253482] +[2025-07-23 22:06:14.253790] [2025-07-23 22:06:14.254123] markdown-it-py[2025-07-23 22:06:14.254438] ==[2025-07-23 22:06:14.254757] 3.0.0[2025-07-23 22:06:14.255125]

[2025-07-23 22:06:14.255726] +[2025-07-23 22:06:14.256079] [2025-07-23 22:06:14.256384] mdurl[2025-07-23 22:06:14.256722] ==[2025-07-23 22:06:14.257086] 0.1.2[2025-07-23 22:06:14.257432]

[2025-07-23 22:06:14.258115] +[2025-07-23 22:06:14.258424] [2025-07-23 22:06:14.259381] pygments==2.19.2

+ rich==14.0.0

``

────────────────────────────────────────────────────────────────────────────────────────

``

``

──────────────────────────────────────── pip ───────────────────────────────────────────

``

Using standard pip install.

ERROR: Ignored the following versions that require a different python version: 1.21.2 Requires-Python >=3.7,<3.11; 1.21.3 Requires-Python >=3.7,<3.11; 1.21.4 Requires-Python >=3.7,<3.11; 1.21.5 Requires-Python >=3.7,<3.11; 1.21.6 Requires-Python >=3.7,<3.11; 1.26.0 Requires-Python <3.13,>=3.9; 1.26.1 Requires-Python <3.13,>=3.9

ERROR: Could not find a version that satisfies the requirement numpy==1.26.1 (from versions: 1.3.0, 1.4.1, 1.5.0, 1.5.1, 1.6.0, 1.6.1, 1.6.2, 1.7.0, 1.7.1, 1.7.2, 1.8.0, 1.8.1, 1.8.2, 1.9.0, 1.9.1, 1.9.2, 1.9.3, 1.10.0.post2, 1.10.1, 1.10.2, 1.10.4, 1.11.0, 1.11.1, 1.11.2, 1.11.3, 1.12.0, 1.12.1, 1.13.0, 1.13.1, 1.13.3, 1.14.0, 1.14.1, 1.14.2, 1.14.3, 1.14.4, 1.14.5, 1.14.6, 1.15.0, 1.15.1, 1.15.2, 1.15.3, 1.15.4, 1.16.0, 1.16.1, 1.16.2, 1.16.3, 1.16.4, 1.16.5, 1.16.6, 1.17.0, 1.17.1, 1.17.2, 1.17.3, 1.17.4, 1.17.5, 1.18.0, 1.18.1, 1.18.2, 1.18.3, 1.18.4, 1.18.5, 1.19.0, 1.19.1, 1.19.2, 1.19.3, 1.19.4, 1.19.5, 1.20.0, 1.20.1, 1.20.2, 1.20.3, 1.21.0, 1.21.1, 1.22.0, 1.22.1, 1.22.2, 1.22.3, 1.22.4, 1.23.0, 1.23.1, 1.23.2, 1.23.3, 1.23.4, 1.23.5, 1.24.0, 1.24.1, 1.24.2, 1.24.3, 1.24.4, 1.25.0, 1.25.1, 1.25.2, 1.26.2, 1.26.3, 1.26.4, 2.0.0, 2.0.1, 2.0.2, 2.1.0, 2.1.1, 2.1.2, 2.1.3, 2.2.0rc1, 2.2.0, 2.2.1, 2.2.2, 2.2.3, 2.2.4, 2.2.5, 2.2.6, 2.3.0rc1, 2.3.0, 2.3.1)

ERROR: No matching distribution found for numpy==1.26.1

``

[notice] A new release of pip is available: 24.0 -> 25.1.1

[notice] To update, run: pip install --upgrade pip

Checking if Streamlit is installed

Installing rich for an improved exception logging

Using standard pip install.

Collecting rich>=10.14.0

Downloading rich-14.0.0-py3-none-any.whl.metadata (18 kB)

Collecting markdown-it-py>=2.2.0 (from rich>=10.14.0)

Downloading markdown_it_py-3.0.0-py3-none-any.whl.metadata (6.9 kB)

Collecting pygments<3.0.0,>=2.13.0 (from rich>=10.14.0)

Downloading pygments-2.19.2-py3-none-any.whl.metadata (2.5 kB)

Collecting mdurl~=0.1 (from markdown-it-py>=2.2.0->rich>=10.14.0)

Downloading mdurl-0.1.2-py3-none-any.whl.metadata (1.6 kB)

Downloading rich-14.0.0-py3-none-any.whl (243 kB)

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 243.2/243.2 kB 13.2 MB/s eta 0:00:00[2025-07-23 22:06:17.895212]

Downloading markdown_it_py-3.0.0-py3-none-any.whl (87 kB)

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 87.5/87.5 kB 128.6 MB/s eta 0:00:00[2025-07-23 22:06:17.914508]

Downloading pygments-2.19.2-py3-none-any.whl (1.2 MB)

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.2/1.2 MB 68.2 MB/s eta 0:00:00[2025-07-23 22:06:17.941629]

Downloading mdurl-0.1.2-py3-none-any.whl (10.0 kB)

Installing collected packages: pygments, mdurl, markdown-it-py, rich

Attempting uninstall: pygments

Found existing installation: Pygments 2.19.2

Uninstalling Pygments-2.19.2:

Successfully uninstalled Pygments-2.19.2

Attempting uninstall: mdurl

Found existing installation: mdurl 0.1.2

Uninstalling mdurl-0.1.2:

Successfully uninstalled mdurl-0.1.2

Attempting uninstall: markdown-it-py

Found existing installation: markdown-it-py 3.0.0

Uninstalling markdown-it-py-3.0.0:

Successfully uninstalled markdown-it-py-3.0.0

Attempting uninstall: rich

Found existing installation: rich 14.0.0

Uninstalling rich-14.0.0:

Successfully uninstalled rich-14.0.0

Successfully installed markdown-it-py-3.0.0 mdurl-0.1.2 pygments-2.19.2 rich-14.0.0

``

[notice] A new release of pip is available: 24.0 -> 25.1.1

[notice] To update, run: pip install --upgrade pip

``

────────────────────────────────────────────────────────────────────────────────────────

``

[22:06:20] ❗️ installer returned a non-zero exit code

[22:06:20] ❗️ Error during processing dependencies! Please fix the error and push an update, or try restarting the app.

[22:06:20] ❗️ Error during processing dependencies! Please fix the error and push an update, or try restarting the app.

When you get a final message that the installer returned a non-zero exist code, you need to read through the logs before it to find the line with the error. In your case, the version of Numpy you selected is incompatible with your environment. Community Cloud defaults to Python 3.13, so you need to set the version of Python when you deploy or change it from your app’s settings in you Community Cloud dashboard.