Error Installing Library from Requirements.txt

When I try to install the api Sqlite3 I get this logs error and it says on the screen a requirements error:

[14:47:49] πŸš€ Starting up repository: 'GITHUB NAME', branch: 'main', main module: 'app.py'
[14:47:49] πŸ™ Cloning repository...
[14:47:50] πŸ™ Cloning into '/app/GITHUBNAME-streamlit'...
[14:47:50] πŸ™ Cloned repository!
[14:47:50] πŸ™ Pulling code changes from Github...
[14:47:51] πŸ“¦ Processing dependencies...
──────────────────────────────────────── pip ───────────────────────────────────────────
ERROR: Could not find a version that satisfies the requirement sqlite3 (from versions: none)
ERROR: No matching distribution found for sqlite3
WARNING: You are using pip version 22.0.3; however, version 22.3.1 is available.
You should consider upgrading via the '/home/appuser/venv/bin/python -m pip install --upgrade pip' command.
Checking if Streamlit is installed
────────────────────────────────────────────────────────────────────────────────────────
[14:47:52] ❗️ installer returned a non-zero exit code
[14:47:52] ❗️ Error during processing dependencies! Please fix the error and push an update, or try restarting the app.
[14:48:51] πŸ™ Pulling code changes from Github...
[14:48:52] πŸ“¦ Processing dependencies...
──────────────────────────────────────── pip ───────────────────────────────────────────
ERROR: Could not find a version that satisfies the requirement sqlite3 (from versions: none)
ERROR: No matching distribution found for sqlite3
WARNING: You are using pip version 22.0.3; however, version 22.3.1 is available.
You should consider upgrading via the '/home/appuser/venv/bin/python -m pip install --upgrade pip' command.
Checking if Streamlit is installed
────────────────────────────────────────────────────────────────────────────────────────
[14:48:54] ❗️ installer returned a non-zero exit code
[14:49:29] ❗️ Streamlit server consistently failed status checks
[14:49:29] ❗️ Please fix the errors, push an update to the git repo, or reboot the app.

Here is my Requirements.txt file

sqlite3
streamlit
openai
datetime
gspread

I’m not seeing a Pypi result for sqlite3 – what package are you trying to import?

1 Like

This is what I have in my code:

import sqlite3 as sql

Also shown here: https://docs.python.org/2/library/sqlite3.html

If it’s part of the Python Standard Library, you don’t need to include it in your requirements file:

Both sqlite3 and datetime come with the Python installation.

Thank you so much this worked

1 Like

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.