On Tue, 27 Jul 2021 at 07:47, Greg KH <gregkh@xxxxxxxxxxxxxxxxxxx> wrote: > How can you add a requirements.txt file for a single script in a > directory of other scripts? You can name them (e.g. requirements-spdxcheck.txt), as pip lets you specify which one to use with its -r option. In addition, if one wants to have a different set of libraries installed for different scripts (or projects, generally), Python's virtual environments offer a lightweight way to do that. Best, Nicky