When I check out a colleague's pulumi code that I ...
# python
t
When I check out a colleague's pulumi code that I haven't worked on before, how do I get pulumi to rebuild the
venv
directory for me?
c
Simply running
pulumi preview
should do the trick 🙂
t
Well, that does make the
venv
dir for me, but I still get
ModuleNotFoundError: No module named 'pulumi'
Should
Pulumi.yaml
excplicitly point to the runtime in the venv? I have
Copy code
runtime:
    name: python
    options:
        virtualenv: venv
I guess I have to manually
venv/bin/pip install pulumi pulumi_aws
?
Yeah that seems to do it.
e
yeh pulumi will use the venv if the option is set, but doesn't currently try to build the venv. Normally you'll want a requirements.txt file in the repo so you can give that to pip to install with
pip install -r requirement.txt