Deployment failing: Error installing requirements

Hello, I am receiving the following error:

RROR: Could not find a version that satisfies the requirement div (from versions: none)
ERROR: No matching distribution found for div

I updated requirements.txt with:bokeh.models

bokeh
bokeh.models.widgets.markups.Markup
div
bokeh==2.4.3
BOKEH_DEV
But still getting the same error

Hi @Gaukhar_Zhurykbay,

Thanks for reaching out! It doesn’t look like “div” is a valid package – can you share what package you’re trying to install?

Best,

Caroline

Hello,

Thank you for your prompt response,
Here is the package:
from bokeh.models.widgets import Div

Also after I decided to remove bokeh from requirements and try to deploy it again, It started showing:
ERROR: Could not find a version that satisfies the requirement python (from versions: none)
ERROR: No matching distribution found for python

But I didnt change pyhton version and was able to deploy app before

Hi @Gaukhar_Zhurykbay,

Can you share your requirements.txt file?

Thanks,

Caroline

Hey @Caroline , here is what requirements.txt contains:streamlit_lottie
matplotlib.pyplot
pythonopencv-python
matplotlib
requests
pandas
plost
altair
openpyxl
plotly
dash
json
plotly.express
numpy
tkinter
multiapp
seaborn
streamlit_option_menu
turtle
cProfile
curses
tarfile
tensorflow
sqlite3
Thank you kindly,
Gaukhar

I would change the first line from “pythonopencv-python” to “opencv-python”

Thank you Caroline, but when I changed opencv-python it gives me error with next package:
ERROR: Could not find a version that satisfies the requirement matplotlib.pyplot (from versions: none)

ERROR: No matching distribution found for matplotlib.pyplot

Hi @Gaukhar_Zhurykbay,

I’d recommend using pypi.org and going through each line in your requirements.txt file to make sure that each package exists. For matplotlib.pyplot, you should be able to remove that line, since you have matplotlib in your file already.

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