Initialize a new CDKTF for Terraform application in Python

717 Views Asked by At

I am unable to initialize a terraform application using CDKTF and Python. I have created a virtual env and initializing it.

https://learn.hashicorp.com/tutorials/terraform/cdktf-build-python?in=terraform/cdktf

Using cdktf init --template="python-pip" --local throws an Error:
'which' is not recognized as an internal or external command, operable program or batch file. Unable to find "pip".

I have added c:\python37\lib\site-packages\pip and c:\python37\Scripts to Path as well

1

There are 1 best solutions below

0
On

Using cdktf init --template="python-pip" --local should work, if not it's a bug that needs to be solved.