0

I 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?

Snowcrash
  • 80,579
  • 89
  • 266
  • 376
  • 2
    your `requirements.txt` file should contain the package names to download and install, not the actual import statements – Green Cloak Guy Oct 26 '21 at 14:14
  • I'm not clear - is the problem to do with my requirements.txt or the command line I'm running - i.e. `pip install ... etc` – Snowcrash Oct 26 '21 at 14:17

0 Answers0