---
title: "Discussion on \"Setting Python and its virtual environments right – using pyenv and virtualenv\" | Hashnode"
description: "Discussion on \"Setting Python and its virtual environments right – using pyenv and virtualenv\". TL;DR: Setup process\nPython is one of the most used programming languages. It has a simple syntax which makes it a perfect choice for people to learn to program. It is also widely used in many areas of software development.\nThis is a brief article ab..."
url: "https://hashnode.com/posts/setting-python-and-its-virtual-environments-right-using-pyenv-and-virtualenv/5e2978ce32d5fad159b7a39d"
---

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

Discussion

# [Setting Python and its virtual environments right – using pyenv and virtualenv](https://hashnode.com/post/setting-python-and-its-virtual-environments-right-using-pyenv-and-virtualenv?utm_source=hashnode&utm_medium=feed)

TL;DR: Setup process Python is one of the most used programming languages. It has a simple syntax which makes it a perfect choice for people to learn to program. It is also widely used in many areas of software development. This is a brief article ab...

Jan 23, 2020 · hashnode.com  
Read the article

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

## Written by

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

@Somanath08 · Bengaluru, India

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

Research assistant at the University of Hyderabad. Currently researching in the fields of AI and Cognitive Science.

## Responses 1

Markdown supported · ⌘↵ to post

[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.
