Install pyenv
on Ubuntu
-
Start by running verifying that
curl
andgit
are installed: -
Run the curl script:
-
Add the following lines to the
bashrc
file. Runpyenv init
if you are not prompted to add these lines. -
Restart the shell in Ubuntu:
-
Display the installed version of the pyenv:
Tip
Depending on how fresh your installation of ubuntu is, you might need to run the following command to install the required packages to be able to build the different versions of python on your system: