https://pulumi.com logo
Title
a

abundant-umbrella-49346

05/04/2023, 1:19 AM
Good evening, I am having a problem with pulumi-aws, I have installed it using "pip3 install pulumi-aws" in vscode terminal and the system cant recognize it in a python file through "import pulumi-aws as aws". Any suggestions?
r

rough-morning-44013

05/04/2023, 1:41 AM
in the project space, do ./venv/bin/pip install pulumi-aws
a

abundant-umbrella-49346

05/04/2023, 2:11 AM
it worked after editing the environment variables path, but thanks
l

limited-rainbow-51650

05/04/2023, 6:19 AM
@abundant-umbrella-49346 the package to install might be named
pulumi-aws
(with a hypen), but the import statement should contain
pulumi_aws
(with an underscore). See one of our examples here: https://github.com/pulumi/examples/blob/master/aws-py-s3-folder/__main__.py#L6