---
title: "Comment by Ratnadeep Bhattacharyya on \"Setting Python and its virtual environments right – using pyenv and virtualenv\" | Hashnode"
description: "Great article but I have one question that why to use virtualenv with pyenv, for me both does same thing, i.e., isolating environments. I used virtaulenv before"
url: "https://hashnode.com/posts/setting-python-and-its-virtual-environments-right-using-pyenv-and-virtualenv/5e2978ce32d5fad159b7a39d/comment/5e2e74a932d5fad159b80311"
---

[Discussion](https://hashnode.com/posts/setting-python-and-its-virtual-environments-right-using-pyenv-and-virtualenv/5e2978ce32d5fad159b7a39d)

Comment [Setting Python and its virtual environments right – using pyenv and virtualenv](https://hashnode.com/posts/setting-python-and-its-virtual-environments-right-using-pyenv-and-virtualenv/5e2978ce32d5fad159b7a39d)

[Ratnadeep Bhattacharyya](https://hashnode.com/@ratnadeep)

[Jan 27, 2020](https://hashnode.com/posts/setting-python-and-its-virtual-environments-right-using-pyenv-and-virtualenv/5e2978ce32d5fad159b7a39d/comment/5e2e74a932d5fad159b80311)

Great article but I have one question that why to use virtualenv with pyenv, for me both does same thing, i.e., isolating environments. I used virtaulenv before and switched to pyenv. Can you clarify please?

[Sai Somanath Komanduri](https://hashnode.com/@Somanath08)

[Jan 27, 2020](https://hashnode.com/posts/setting-python-and-its-virtual-environments-right-using-pyenv-and-virtualenv/5e2978ce32d5fad159b7a39d/comment/5e2e74a932d5fad159b80311#reply-5e2e8dcb7a1d3fcc5903e475)

Thanks, I am glad you liked it.

To answer your question: convenience. By using the `pyenv` plugin of virtualenv, you can map a project to a particular virtual environment. (Look at `pyenv local`)

I had some instances where either I forget activating the virtual environment or I am using the wrong environment. I can prevent these errors from using`pyenv`. It just allows me to be a bit lazy.
