https://pulumi.com logo
#getting-started
Title
# getting-started
b

brief-church-23335

12/18/2022, 8:27 PM
Hello 🙂 I can’t create a python Pulumi project with any requirements beyond the pulumi (e.g.
pulumi-aws
) ones - been trying to update the
requirements.txt
file and then
pulumi refresh
but it doesn’t seem to work
b

billowy-army-68599

12/18/2022, 8:52 PM
Are you installing the dependencies into the automatically created virtual env?
r

red-match-15116

12/19/2022, 12:25 AM
To include a new dependency you can either update the
requirements.txt
and run
Copy code
venv/bin/pip install -r requirements.txt
OR you can run
Copy code
venv/bin/pip install [dependency]
Not sure if you're expecting
pulumi refresh
to do the dependency installation for you - but that is not the expected behavior of
refresh
. You can read more about it in the docs here: https://www.pulumi.com/docs/reference/cli/pulumi_refresh/
b

brief-church-23335

12/19/2022, 5:46 AM
thank you guys 😍
how would the pip instance under
venv
“know” to install it on the Pulumi VM and not locally? 🤔
how can I add that script to Pulumi in order to automatically install the reqs?