Coder Social home page Coder Social logo

zaemiel / ubuntu-pyenv-installer Goto Github PK

View Code? Open in Web Editor NEW
32.0 5.0 10.0 71 KB

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

Shell 100.00%
python pyenv pyenv-installer bash installer ubuntu

ubuntu-pyenv-installer's Introduction

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

ubuntu-pyenv-installer's People

Contributors

zaemiel avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.