I keep hitting this problem where the pulumi
CLI tool runs, but whenever I try to do anything with it like pulumi up
or pulumi preview
it gives me this error that it can't find its own library:
Traceback (most recent call last):
File "/home/ubuntu/.pulumi/bin/pulumi-language-python-exec", line 16, in <module>
import pulumi
ModuleNotFoundError: No module named 'pulumi'
The last time I solved this I realized the root cause was that I'm using conda to manage my python environments. The tool suggests pip install pulumi
which doesn't really work because then it'll just complain about No module named 'pulumi_aws'
etc.
I've forgotten how I got around the problem, so I'm putting the question up here so when I figure it out I'll have a good place to post the solution. Or maybe somebody has knows the answer.