Skip to content

zaemiel/ubuntu-pyenv-installer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

Ubuntu Pyenv Installer

The Ubuntu Pyenv Installer is a 2-click installation script that will install on your Debian/Ubuntu/Mint Linux distribution:

  • Python build dependencies
  • Pyenv
  • The latest Python version (if needed)
  • Will set the latest Python version as the global version for the system (if needed)

Tested on freshly installed:

  • Ubuntu 18.04.6
  • Linux Mint 20.01, 21.1
  • Ubuntu 20.04.3

Installation / Uninstallation

You need curl to use this script. Linux Mint has curl preinstalled, but Ubuntu hasn't.

To install curl use this command:

sudo apt install curl

Install Pyenv

To install Pyenv on your Ubuntu-based distro just execute this command in shell:

bash <(curl -sSL https://raw.githubusercontent.com/zaemiel/ubuntu-pyenv-installer/master/ubuntu-pyenv-installer.sh)

After the installation will be completed the script will automatically add these lines at the beginning of your .bashrc file, and will restart your shell:

export PYENV_ROOT="$HOME/.pyenv"
export PATH="$PYENV_ROOT/bin:$PATH"
eval "$(pyenv init --path)"
eval "$(pyenv virtualenv-init -)"

Uninstall

To uninstall Pyenv you just need to delete the lines above from your .bashrc, and then delete ~/.pyenv directory

rm -rf ~/.pyenv

and restart your shell

source ~/.bashrc

or

exec $SHELL

Screenshots

Initial dialog

Links

License

The MIT License

About

This tool is used to install Python build dependencies, install Pyenv and configure it to work on Ubuntu, Mint and other Ubuntu-based Linux destributions

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages