can poetry delete virtual enviroments created outside poetry? #9483
-
I have the following virtual environments, where venv was created without poetry.
I get the following errors when I try to delete it.
Can environments created without poetry be deleted using poetry? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
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 However, I think |
Beta Was this translation helpful? Give feedback.
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 runningpoetry env remove --all
works in that case. Maybe, you have to setvirtualenvs.in-project
first.