Skip to content

Instantly share code, notes, and snippets.

@hobbes3
Last active July 11, 2019 07:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hobbes3/3c30c58f582d4ded7651024ba2e71d62 to your computer and use it in GitHub Desktop.
Save hobbes3/3c30c58f582d4ded7651024ba2e71d62 to your computer and use it in GitHub Desktop.
amazon linux 2 python pyenv node nodejs install yum
# Running as root
### PYENV
yum install -y git gcc gcc-c++ make git patch openssl-devel zlib-devel readline-devel sqlite-devel bzip2-devel zlib libffi-devel
# Switch to the user that will use pyenv
git clone https://github.com/pyenv/pyenv.git ~/.pyenv
echo 'export PYENV_ROOT="$HOME/.pyenv"' >> ~/.bash_profile
echo 'export PATH="$PYENV_ROOT/bin:$PATH"' >> ~/.bash_profile
echo -e 'if command -v pyenv 1>/dev/null 2>&1; then\n eval "$(pyenv init -)"\nfi' >> ~/.bash_profile
. ~/.bash_profile
### NODE
curl -sL https://rpm.nodesource.com/setup_11.x | bash -
yum install -y nodejs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment