DEV Community

Discussion on: How to Setup Python Virtual Environment for Python3 on Ubuntu 19.10

Collapse
 
moopet profile image
Ben Sinclair

From what I've heard, pyenv is the hot environment manager these days, rather than virtualenv. They do a very similar job though.

Collapse
 
jsgurugit profile image
jsguru

Hi Ben

As you know, pyenv is a tool for managing multiple Python versions.
And you can create virtual environment using the pyenv-virtualenv extension.

$ pyenv virtualenv 3.8.0 my-python-project-env

We can compare it to creating a gemset in ruby.

$ rvm gemset create my-ruby-project-env

What you can see here is that when you create a virtual environment you can set python version with pyenv.