I'm following this https://app.pluralsight.com/guides/dockerfile-for-python-web-projects
and have a requirements.txt
file containing:
streamlit
Running
pip install -r requirements.txt
I get:
ERROR: Invalid requirement: 'import streamlit as st' (from line 1 of requirements.txt)
What's the problem?
Note, I just asked this here which was closed: ERROR: Invalid requirement: 'import streamlit as st' however the suggested answer (How to install from requirements.txt? ) does not work.
E.g. if I do pip freeze > requirements.txt
I get hundreds of pip packages and don't get streamlit
.