How to Install Pyenv Virtualenv on Ubuntu 18.04

cd python_project/In this video, we describe how to Install Pyenv Virtualenv on an Ubuntu 18.04 server.

Commands used:
apt update -y
git clone $(pyenv root)/plugins/pyenv-virtualenv
echo ‘eval “$(pyenv virtualenv-init -)”‘ >> ~/.bashrc
exec “$SHELL”
mkdir python_project
cd python_project/
pyenv-virtualenv <python-version> <virtual-environment-name>
pyenv versions
pyenv virtualenv 3.8.3 python-project-3.8.3
pyenv versions
pyenv local python-project-3.8.3
cd python_project/
pyenv activate python-project-3.8.3
pyenv deactivate

The related article for this article can be found here: in a new tab)

For more information about this and other topics, visit us at or to learn more about our dedicated server offerings, visit

Video by: Justin Palmer

Duration: 00:03:05
Publisher: Liquid Web
You can watch this video also at the source.