Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I write a salt state to pip install requirements file?

Can't find this written down. I'm trying:

pip.install:
  - requirements: /path/to/requirements.txt

But I'm getting the error that

ID pip.install in SLS python.python-pip is not a dictionary

Many of the other ways include virtualenvs, but I don't want to use a virtualenv to do this as it's for a virtual machine, so there's no point.

like image 449
David Boshton Avatar asked Dec 06 '25 09:12

David Boshton


1 Answers

pip.installed

pip.installed:
  - requirements: /path/to/requirements.txt
like image 109
the.malkolm Avatar answered Dec 07 '25 21:12

the.malkolm



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!