How to Install Python using Pyenv on Ubuntu 20.04
Easy way to install and switch python version
When it comes to python, did you ever find a problem installing or changing the python version? If yes, then we’re the same. I always got a problem when it comes to changing the python version and my only solution at that time is just uninstalling python and re-installing the version that I need.
After dealing with that problem for a long time, I finally found the tools to manage the python version, named Pyenv.
What is Pyenv?
Basically, Pyenv is a tool to simplify installation and version changing in python. It helps developers quickly install or change the python version without needing to change the whole system.
In this post, I will show you how to install pyenv and manage the python version.
Install Pyenv
To start the installation process, it’s a good idea to update the system packages. Open the terminal and write the command below.
apt update -y
After that, let’s install all Pyenv dependencies.
apt install -y make build-essential libssl-dev zlib1g-dev \
> libbz2-dev libreadline-dev libsqlite3-dev wget curl llvm libncurses5-dev\
>…