Ben Chuanlong Du's Blog

And let it direct your passion with reason.

Managing Virtual Environments in Poetry

Where to Create Virtual Environments

By default, Poetry create virtual environment in $HOME/.poetry for cahcing/sharing purpose. However, it is inconvenient if you use Docker-based web IDE for a Python project as you will lose the created virtual environment once the Docker container is restarted. In that situation, you …