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

fast-magician-55948

05/09/2019, 12:26 PM
Copy code
(venv) C:\Users\perry\dev\pulumi>pulumi up
Previewing update (dev):

     Type                 Name            Plan     Info
     pulumi:pulumi:Stack  gcp-python-dev           1 error

Diagnostics:
  pulumi:pulumi:Stack (gcp-python-dev):
    error: Failed to locate 'python3' on your PATH. Have you installed Python 3.6 or greater?
s

straight-napkin-70642

05/09/2019, 1:28 PM
It looks like some tool for some reason is looking for
python3
in your PATH. What do you get running
which python3
?
f

fast-magician-55948

05/09/2019, 1:32 PM
Copy code
(venv) C:\Users\perry\dev\pulumi-ts>where python3
INFO: Could not find files for the given pattern(s).
s

straight-napkin-70642

05/09/2019, 1:37 PM
I was asking for linux/bash
which
to find out if
python3
is already in your path
f

fast-magician-55948

05/09/2019, 1:37 PM
This is all on Windows
s

straight-napkin-70642

05/09/2019, 1:38 PM
Running
python3 --version
also will confirm if this executable is available
f

fast-magician-55948

05/09/2019, 1:39 PM
I don't seem to have python3, python is 3.7
Copy code
(venv) C:\Users\perry\dev\pulumi>python3 --version
'python3' is not recognized as an internal or external command,
operable program or batch file.

(venv) C:\Users\perry\dev\pulumi>python --version
Python 3.7.0
Maybe I can alias python3 to python...
s

straight-napkin-70642

05/09/2019, 1:40 PM
Yeah, that should work
I was trying to remember how to do that in Windows, but that was ages ago
f

fast-magician-55948

05/09/2019, 1:54 PM
That didn't work -
Copy code
python3 --version
now works fine but
Copy code
pulumi up
still looking specifically in the path. I'm switching to Ubuntu on Windows now...
s

straight-napkin-70642

05/09/2019, 1:57 PM
🤔 ok, good luck
f

fast-magician-55948

05/09/2019, 2:30 PM
That worked fine. I think there's still some bugs for pulumi SDK on windows. I've found using the Ubuntu Windows Subsystem solves most problem - all CLI instantly works fine 😁
👍 1