ERROR: Could not find a version that satisfies the requirement matplotlib.pyplot (from versions: none)
ERROR: No matching distribution found for matplotlib.pyplot
Would it be possible to get a link to the repo, please?
Just to clarify, when you specify dependencies in your requirements.txt file, you should specify the package name, not a specific module within the package. In this case, you should be specifying matplotlib, not matplotlib.pyplot.
Your requirements.txt file should look like:
matplotlib
... (other dependencies)
You may want to try the above. If it doesn’t work, please send us the GitHub repo, and we’ll have another look.
Many thanks. Got over this. Now I am encountering a new error
ModuleNotFoundError: No module named ‘sqlalchemy’. You need to install the ‘sqlalchemy’ package to use this connection.
Did you add sqlalchemy to your requirements.txt file. Your requirements.txt file should now look something like this:
matplotlib
sqlalchemy
... (other dependencies)
Make sure you commit and push the changes to your GitHub repository. Then, redeploy your Streamlit app. This should hopefully solve the ModuleNotFoundError you’re having.