Which file is the poetry executable file?

I am trying to run code in pycharm using poetry. I have run "poetry install" and "poetry shell" in the terminal. I have also downloaded the pycharm poetry extension from the marketplace. I followed the help guide to set up a poetry environment in pycharm, but I do not know what to select for "executable file". On the help guide it seems like it is automatically chosen, but it is not for me. I assume that this "executable file" will be in the same directory as the one that I get from typing "where python" in the terminal after loading poetry, but there are many files in this directory and I do not know which one to select. I am attaching a picture to show what I mean:

4 comments
Comment actions Permalink

Hi, you should be able to see the path to poetry executable by running `which poetry`. Do you have it?

0
Comment actions Permalink

Here is the path to poetry:

$ which poetry
/c/Users/user/AppData/Local/Programs/Python/Python39/Scripts/poetry
$ where poetry
C:\Users\user\AppData\Local\Programs\Python\Python39\Scripts\poetry.exe

Note that it is different than my path to python (what I get when I type "which python" after typing "poetry install" and "poetry shell"):

$ which python
/c/Users/user/AppData/Local/pypoetry/Cache/virtualenvs/project-QD09Pf29-py3.9/Scripts/python

Am I supposed to choose the path to poetry instead of the path to python? Also, does the path to the executable include the .exe or not? What exactly should I choose for my executable file?

I am on Windows by the way.

0
Comment actions Permalink

You should choose the path to poetry.exe

1
Comment actions Permalink

Thanks this works!

0

Please sign in to leave a comment.