How to Manage Python Projects with Poetry

Now you read to start the project seriously. Everything you have to remember from this point is to use poetry – and only poetry – to manage all addictions and virtual around the project.

Removal to the virtual environment of poetry

By default, the virtual environment managed by poetry in the central directory of the system, far from all the projects associated with it. As a result, the removal of the project directory also does not remove the corresponding virtual environment, because poetry does not follow such things automatically. You must remove the centrally managed virtual environmental yourself.

If you want to do this, go to the root directory of the Poetry project concerned and on the part of the command poetry env remove python (gold poetry env remove pyfor Windows). If you have rewrote the default behavior of poetry and placed the environment in your project directory, you can only delete the surroundings manually; Just remember that it beats one of the best features of poetry.

Leave a Comment