Skip to content

can poetry delete virtual enviroments created outside poetry? #9483

Answered by radoering
sandeep026 asked this question in Q&A
Discussion options

You must be logged in to vote

At least, it is not intended to work for environments not created by Poetry. See https://python-poetry.org/docs/managing-environments/#deleting-the-environments valid examples for env remove.

However, I think .venv is a special case because it can be created by Poetry (see https://python-poetry.org/docs/configuration/#virtualenvsin-project). Maybe, passing the path to the Python executable or running poetry env remove --all works in that case. Maybe, you have to set virtualenvs.in-project first.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by sandeep026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants