How to Install Pyenv Virtualenv on Ubuntu 18.04

Bitninja


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 https://github.com/pyenv/pyenv-virtualenv.git $(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
cd python_project/
cd
pyenv activate python-project-3.8.3
pyenv deactivate

The related article for this article can be found here:
https://www.liquidweb.com/kb/how-to-install-pyenv-virtualenv-on-ubuntu-18-04/(opens in a new tab)

For more information about this and other topics, visit us at https://www.liquidweb.com/kb/ or to learn more about our dedicated server offerings, visit https://www.liquidweb.com/products/dedicated/

Video by: Justin Palmer


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