https://pulumi.com logo
#python
Title
a

ancient-cricket-42076

12/27/2021, 5:48 PM
Hello, what could be preventing python from finding the pulumi_aws module? If I try to run any sort of pulumi command I face a:
ModuleNotFoundError: No module named 'pulumi_aws'
But browsing the packages of the enviroment it seems to be in order (I make sure it's the default env when trying to deploy, I have tried recreating the env and installing the packages again as well)
s

steep-sunset-89396

12/27/2021, 10:59 PM
Hi Claudia. What
pulumi about
says ?
a

able-honey-93860

12/28/2021, 5:39 AM
I ran into this when the requirements.txt didn’t contain the proper packages, but looks like you verified that it's already there and in the venv?
a

ancient-cricket-42076

12/28/2021, 12:01 PM
Hello, it turns out that I was using Conda to manage my environments but pulumi enforces venv, so I was looking at the wrong list of installed packages, I gotta say this is is the first time I run into this conflict, can I configure pulumi to recognize conda as the environment manager?
a

able-honey-93860

12/29/2021, 6:09 AM
Yeah I ran into the same thing haha, requirements.txt is key. There was definitely an article explaining how to change it from defaulting to venv, however ultimately once I figured out requirements.txt was all I needed to update I saw the benefit and kept it.
c

colossal-boots-62227

12/31/2021, 5:11 AM
You can use other Python package managers with Pulumi (I use Poetry and so can do
poetry run pulumi up
)