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

abundant-book-94104

11/12/2021, 1:44 AM
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

red-match-15116

11/12/2021, 2:54 AM
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

abundant-book-94104

11/12/2021, 2:55 AM
Ah thanks, that's great, I read something on a blog talking about some pulumi features and looked like the case
p

prehistoric-activity-61023

11/12/2021, 7:31 AM
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

abundant-book-94104

11/14/2021, 10:34 PM
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