Combining Conda with Poetry for Environment and Package Management (in Windows)



Recently, I was working in a (Python) project that was completely set up using Poetry. Up to now, I hadn’t had the opportunity (or the need) to try it out, so this seemed like a good learning opportunity.
Except for a few caveats1, Poetry has been very simple and straightforward to use. However, it still has some disadvantages compared to conda
(my go-to solution for environment and package management), namely:
- Poetry only supports Python projects. Sure, I work mostly with Python, but what will happen when I need to use or combine a different framework?
- Poetry relies on
venv
for virtual environments, which has given me a lot of headaches in the past (and one of the main reasons why I switched toconda
).
But what if you could combine the best of both worlds? For instance: creating an environment with conda
and letting Poetry do all the Python package management?
That sounds great!

I was looking for a step-by-step guide of how to configure them for Windows. Although I found one or two,
I still needed to do some tinkering myself. In this post, I would like to share how I configured conda
and Poetry to work together. Hopefully this will save you some time and makes things smoother, should you decide to have this setup yourself.