Error installing requirements - unable to open requirements

Hello, I’m having issues with deploying this app. I’ve gathered the required information below. Thank you for your assistance.

Share the link to the public app (deployed on Community Cloud).

https://github.com/jbmalloy03/IT-745_Machine_Learning_course/tpr_nlp.py

Share the link to your app’s public GitHub repository (including a requirements file).

https://github.com/jbmalloy03/IT-745_Machine_Learning_course/requirements.txt

Share the full text of the error message (not a screenshot).

[ UTC ] Logs for it-745machinelearningcourse-w5hgqwxlpwaqglok4h4vps.streamlit.app/

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

[14:09:40] :desktop_computer: Provisioning machine…

[14:09:40] :control_knobs: Preparing system…

[14:09:40] :chains: Spinning up manager process…

[14:09:40] :rocket: Starting up repository: ‘it-745_machine_learning_course’, branch: ‘main’, main module: ‘tpr_nlp.py’

[14:09:40] :octopus: Cloning repository…

[14:09:41] :octopus: Cloning into ‘/mount/src/it-745_machine_learning_course’…

[14:09:41] :octopus: Cloned repository!

[14:09:41] :octopus: Pulling code changes from Github…

[14:09:41] :package: Processing dependencies…

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

Using uv pip install.

error: Error parsing included file in requirements.txt at position 0

Caused by: failed to read from file /mount/src/it-745_machine_learning_course/pip install streamlit

Caused by: No such file or directory (os error 2)

Checking if Streamlit is installed

Installing rich for an improved exception logging

Using uv pip install.

Using Python 3.13.11 environment at /home/adminuser/venv

Resolved 4 packages in 120ms

Prepared 4 packages in 112ms

Installed 4 packages in 14ms

  • markdown-it-py==4.0.0

  • mdurl==0.1.2

+[2026-01-08 14:09:42.370851] pygments==2.19.2

  • rich==14.2.0

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

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

Using standard pip install.

ERROR: Could not open requirements file: [Errno 2] No such file or directory: ‘/mount/src/it-745_machine_learning_course/pip’

[notice] A new release of pip is available: 24.0 → 25.3

[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.2.0-py3-none-any.whl.metadata (18 kB)

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

Downloading markdown_it_py-4.0.0-py3-none-any.whl.metadata (7.3 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.2.0-py3-none-any.whl (243 kB)

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 243.4/243.4 kB 15.8 MB/s eta 0:00:00[2026-01-08 14:09:45.005625]

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

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 87.3/87.3 kB 132.0 MB/s eta 0:00:00[2026-01-08 14:09:45.016630]

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

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.2/1.2 MB 92.0 MB/s eta 0:00:00[2026-01-08 14:09:45.040725]

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 4.0.0

Uninstalling markdown-it-py-4.0.0:

  Successfully uninstalled markdown-it-py-4.0.0

Attempting uninstall: rich

Found existing installation: rich 14.2.0

Uninstalling rich-14.2.0:

  Successfully uninstalled rich-14.2.0

Successfully installed markdown-it-py-4.0.0 mdurl-0.1.2 pygments-2.19.2 rich-14.2.0

[notice] A new release of pip is available: 24.0 → 25.3

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

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

[14:09:46] :red_exclamation_mark: installer returned a non-zero exit code

[14:09:46] :red_exclamation_mark: Error during processing dependencies! Please fix the error and push an update, or try restarting the app.

Welcome to the Streamlit community and thanks for sharing all the details! :rocket: The error in your deployment logs is due to an incorrect requirements.txt file. Specifically, your requirements.txt contains the line pip install streamlit, but requirements.txt should only list package names (and optional version specifiers), not pip commands. The deployer tries to find a file named pip, which doesn’t exist, causing the “No such file or directory” error.

To fix this, edit your requirements.txt so it only lists the package names, one per line, like this:

streamlit

(add any other packages your app needs, e.g., pandas, numpy, scikit-learn, etc.)

Do not include pip install or any other command-line instructions. After updating, commit and push the changes to GitHub, then redeploy your app. For more info, see the official docs on app dependencies and common deployment errors.

Sources:

Two suggestions:

  • For the given codebase, the code structure needs to be clearly defined. I notice multiple duplicated and aggregated files, which makes the structure unclear.
  • Then update the requirements.txt with the exact dependency versions used in the project, since the runtime is currently unable to read it. Use pip freeze or uv pip freeze and update the requirements.txt file.