It looks like I may have broken my python installa...
# python
a
It looks like I may have broken my python installation with a clash of azure libraries for key vault. Is there an easy way to recreate the virtual env. Is it ok to delete and create again somehow? This is a WSL2 on Win10 environment
r
You can just delete the venv folder and remake it with
python -m venv venv
and then reinstall requirements with
venv/bin/pip install -r requirements.txt
Although I think it might automatically do that when you run
pulumi up
if there is no
venv
folder. (like you don't have to remake it yourself)
a
Ah thanks, that's great, I read something on a blog talking about some pulumi features and looked like the case
p
Pulumi does recreate the
venv
folder (based on the configuration from
Pulumi.yaml
) but please note that it does NOT automatically install dependencies).
So if you get some strange errors complaining about missing
pulumi
dependency, just explicitly install the dependencies using:
Copy code
source venv/bin/activate
pip install -r requirements.txt
a
Thanks for the tip, I ran a preview and it built the environment. Today I find out if it's ok or needs the extras