To install Poetry on Windows, run the command below in Git Bash.
curl -sSL https://install.python-poetry.org | py -
‘py’ can also be used as ‘python3’, depending on how Python is installed on your system. In my case, I used ‘py’.
Next, you need to add the Poetry’s bin directory to your PATH environment variable.
Type “PATH” into the search box on your Windows taskbar.
Click on ‘Edit the System Environment Variables.’
Click on “Environment Variables” in the dialog box that appears.
Choose ‘Path’ and then click on ‘Edit.’
In the new dialog that appears, click on “New,” then paste the location displayed to you in the terminal.
When you have finished, please click ‘OK.’
Restart your Git Bash terminal, and you should now be able to execute the Poetry command.