https://pulumi.com logo
Title
f

future-window-78560

09/15/2021, 4:27 PM
Hey there! Creating a project through "pulumi new Kubernetes-python" throws an error while importing pulumi_gcp in the python file. Similarly, a project created through "pulumi new gcp-python" throws a module not found error for pulumi_kubernetes. Whereas I am supposed to use both. Any guide of where I am lacking?
r

red-match-15116

09/15/2021, 4:31 PM
You’ll have to install your other dependencies as you would ordinarily do with python projects:
venv/bin/pip install pulumi-gcp
f

future-window-78560

09/15/2021, 7:27 PM
That didn't work either
r

red-match-15116

09/15/2021, 7:49 PM
Can you show what your file structure looks like? Are you using a virtual environment? What happens when you run that command?
It’s hard to know what’s going on with the information you’ve provided. But in general, python packages need to part of your environment if you’re going to use them in your program.