dear boss
My app runs perfectly on my local machine, but I encounter an error when I try to deploy it on Streamlit Cloud. Could you please take a look at the error related to my requirements file and provide the appropriate solution? Thank you!
full error
Downloading analytics_python-1.4.post1-py2.py3-none-any.whl.metadata (2.0 kB)
INFO: pip is looking at multiple versions of ml-dtypes to determine which version is compatible with other requirements. This could take a while.
ERROR: Cannot install -r /mount/src/mfatest/requirements.txt (line 123), -r /mount/src/mfatest/requirements.txt (line 139), -r /mount/src/mfatest/requirements.txt (line 170), -r /mount/src/mfatest/requirements.txt (line 171), -r /mount/src/mfatest/requirements.txt (line 185), -r /mount/src/mfatest/requirements.txt (line 188), -r /mount/src/mfatest/requirements.txt (line 192), -r /mount/src/mfatest/requirements.txt (line 2), -r /mount/src/mfatest/requirements.txt (line 26), -r /mount/src/mfatest/requirements.txt (line 46), -r /mount/src/mfatest/requirements.txt (line 61), -r /mount/src/mfatest/requirements.txt (line 7), -r /mount/src/mfatest/requirements.txt (line 71), -r /mount/src/mfatest/requirements.txt (line 72), -r /mount/src/mfatest/requirements.txt (line 78), -r /mount/src/mfatest/requirements.txt (line 87) and numpy==1.26.4 because these package versions have conflicting dependencies.
The conflict is caused by:
The user requested numpy==1.26.4
adjusttext 1.3.0 depends on numpy
altair 4.2.2 depends on numpy
bioframe 0.8.0 depends on numpy<3 and >=1.10
contourpy 1.3.0 depends on numpy>=1.23
datashader 0.18.0 depends on numpy
df-global-search 0.1.1 depends on numpy>=1.24
diffusers 0.32.1 depends on numpy
dtale 3.16.1 depends on numpy; python_version >= "3.0"
fastcluster 1.2.6 depends on numpy>=1.9
h5py 3.12.1 depends on numpy>=1.19.3
ipympl 0.9.3 depends on numpy
keras 3.9.2 depends on numpy
keras-applications 1.0.8 depends on numpy>=1.9.1
matplotlib 3.9.2 depends on numpy>=1.23
missingno 0.5.2 depends on numpy
ml-dtypes 0.5.1 depends on numpy>=1.21
ml-dtypes 0.5.1 depends on numpy>=1.21.2; python_version >= "3.10"
ml-dtypes 0.5.1 depends on numpy>=1.23.3; python_version >= "3.11"
ml-dtypes 0.5.1 depends on numpy>=1.26.0; python_version >= "3.12"
ml-dtypes 0.5.1 depends on numpy>=2.1.0; python_version >= "3.13"
To fix this you could try to:
1. loosen the range of package versions you've specified
2. remove package versions to allow pip attempt to solve the dependency conflict
ERROR: ResolutionImpossible: for help visit https://pip.pypa.io/en/latest/topics/dependency-resolution/#dealing-with-dependency-conflicts
[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.1-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 12.0 MB/s eta 0:00:00[2025-05-25 12:03:52.202105]
Downloading markdown_it_py-3.0.0-py3-none-any.whl (87 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 87.5/87.5 kB 175.8 MB/s eta 0:00:00[2025-05-25 12:03:52.213999]
Downloading pygments-2.19.1-py3-none-any.whl (1.2 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.2/1.2 MB 71.8 MB/s eta 0:00:00[2025-05-25 12:03:52.243804]
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.1
Uninstalling Pygments-2.19.1:
Successfully uninstalled Pygments-2.19.1
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.1 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
────────────────────────────────────────────────────────────────────────────────────────
[12:03:55] ❗️ installer returned a non-zero exit code
pandas-profiling has changed its name.