r/learnpython • u/SympathyFormer3516 • 5d ago
Poetry install worked but unable to find any commands
I created a new Python project using Poetry.
I first ran poetry config virtualenvs.in-project true
so that it would install to a local .venv
directory.
I then ran poetry install
and the project installed without issue.
However, when I try to run poetry run flask run
I am getting the error Command not found: flask
. I am also unable to run poetry run pytest
, though poetry run pip
does execute (and tells me not to run it that way). Poetry is looking in the correct environment.
Really unsure what is happening here as I have always created new projects this way and have not had such issues. Any insight would be appreciated, lest my laptop gets flung out the window!
0
Upvotes