---
title: "Discussion on \"Crafting Your Python Workspace\" | Hashnode"
description: "Discussion on \"Crafting Your Python Workspace\". Leveraging `pyenv`"
url: "https://hashnode.com/posts/crafting-your-python-workspace/663e32d525de71aab8266322"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Crafting Your Python Workspace](https://abeltavares.hashnode.dev/crafting-your-python-workspace?utm_source=hashnode&utm_medium=feed)

Leveraging \`pyenv\`

May 10, 2024 · 6 min read · abeltavares.hashnode.dev  
Updated May 29, 2024  
Read the article

-   [#python](https://hashnode.com/tag/python)
-   [#software-development](https://hashnode.com/tag/software-development)

## Written by

[Abel Tavares](https://hashnode.com/@abeltavares)

@abeltavares

  
[View profile](https://hashnode.com/@abeltavares)

Heart for coding, Mind for business

I'm an Engineer, really into coding and making technology work for business. Obsessed with reading, writing and continuous learning.

## Responses 1

Markdown supported · ⌘↵ to post

[Rajesh Kumar Das](https://hashnode.com/@hyperoot)

[May 11, 2024](https://hashnode.com/posts/crafting-your-python-workspace/663e32d525de71aab8266322/comment/663f3c2e121e5127b619d690)

It's a well written article. Couple of months ago, I came across poetry (python-poetry.org). Could you provide an insight into when to pick pyenv or when to choose python-poetry? Or could we marry them both and have the best of both world?

[Abel Tavares](https://hashnode.com/@abeltavares)

[May 11, 2024](https://hashnode.com/posts/crafting-your-python-workspace/663e32d525de71aab8266322/comment/663f3c2e121e5127b619d690#reply-663fdf04b77b825a49b31bb7)

Thank you for bringing up poetry—it's a great tool for managing dependencies and virtual environments. Let's see how it compares to the pyenv with pyenv-virtualenv setup:

Poetry: This tool is excellent for handling project dependencies and setting up virtual environments seamlessly. It also simplifies the process of preparing packages for deployment to PyPI, which is great if you're looking to distribute your package. However, poetry does not manage different Python versions. If you need to switch between Python versions across various projects, you would need to use it alongside pyenv.

pyenv with pyenv-virtualenv: This combination focuses on managing multiple Python versions and their respective virtual environments. It's very useful if your projects require different Python versions. The dependency management can be managed via requirements.txt, which, while simpler than poetry's approach, suits many developers needs by keeping everything within one tool ecosystem.

Personally, pyenv with pyenv-virtualenv is my go to solution to manage projects. It allows me to focus on one tool that covers both Python version management and environment isolation, without the additional features of poetry that I might not always need.
