I'm trying to curl a txt file and pipe it to pip.
Example:
curl -s URL | pip install -r -
It doesn't work beucase the last - is not the curl output as I'd expect. I often have this issue with other commands too.
How to fix this with bash?
I'm trying to curl a txt file and pipe it to pip.
Example:
curl -s URL | pip install -r -
It doesn't work beucase the last - is not the curl output as I'd expect. I often have this issue with other commands too.
How to fix this with bash?
Using - as a method to pipeline information which could also come from a file is a fairly common way for things to work, but it is not a given.
I’m assuming your URL contains only a flat list of packages, IE no html:
pip install -r <(curl -s URL)
Or
pip install $(curl -s URL)