Install pyenv on EC2 (Amazon Linux)

Note that there were some problems when installing pyenv on EC

#install git
yum install git 
#Clone pyenv
git clone https://github.com/pyenv/pyenv.git ~/.pyenv 
#Add to environment variable
echo 'export PYENV_ROOT="$HOME/.pyenv"' >> ~/.zshrc
echo 'export PATH="$PYENV_ROOT/bin:$PATH"' >> ~/.zshrc
echo -e 'if command -v pyenv 1>/dev/null 2>&1; then\n  eval "$(pyenv init -)"\nfi' >> ~/.zshrc
exec "$SHELL"
#Install dependent software
sudo yum install gcc zlib-devel bzip2 bzip2-devel readline-devel sqlite sqlite-devel openssl-devel tk-devel libffi-devel
pyenv install 3.7.7

Recommended Posts

Install pyenv on EC2 (Amazon Linux)
I'll install Ruby on EC2 (Amazon Linux2) 2020
Install Python 3.8, Pip 3.8 on EC2 (Amazon Linux 2)
Install tomcat 5.5 on Amazon Linux.
Install Homebrew on Amazon Linux 2
Install strongSwan 5.9.1 on Amazon Linux 2
Install Python Pillow on Amazon Linux
Install oracle java8 on amazon linux2
[Note] Install Imagick on Amazon Linux2
[AWS EC2] How to install Maven on Amazon Linux 2
How to install Anisble on Amazon Linux 2
Install pyenv on mac
Install pyenv on OSX
Install PHP 7 series on Amazon Linux 2 with Amazon Linux Extras
Install Python3 and Django on Amazon Linux (EC2) and run your web server
Install Minecraft on Arch Linux
Install Linux on your Chromebox
Install the JDK on Linux
Put jenv on Amazon Linux
Python --Install MySQLDB on EC2
Use sshpass on Amazon linux2
Compile and install MySQL-python for python2.7 on amazon linux
How to install git on Linux such as EC2
Install LAMP on Amazon Linux 2 and build a WordPress environment.
Try installing OpenAM on Amazon Linux
Install CUDA on Linux Mint Mate 20
Install Arch Linux on DeskMini A300
How to install wkhtmltopdf (Amazon Linux2)
How to install VMware-Tools on Linux
[AWS EC2] Settings you want to do on Amazon Linux 2
Install Python on CentOS using Pyenv
[Note] Run Django on Amazon Linux 2
Launch NEM Symbol testnet node on AWS EC2 (Amazon Linux2)
Run docker-compose on Amazon Linux2 on ARM64
[AWS EC2] How to install only MySQL client on Amazon Linux 2 and connect to RDS
Introduce Python 3.5.2 environment on Amazon Linux
Install python2.x on catalina with pyenv
Install Python on CentOS using pyenv
Run cron on Amazon Linux (set on Linux)
Summary of installing PHP7.2 on EC2 (Amazon Linux 2) and setting php.ini
Install scipy on Linux without internet connection
How to install aws-session-manager-plugin on Manajro Linux
Install wsl2 and master linux on windows
Use Numpy, Scipy, scikit-learn on Amazon Linux
How to update php on Amazon linux 2
Install and launch k3s on Manjaro Linux
Build an LNPP environment on Amazon Linux 2
Install and Configure TigerVNC server on Linux
Learn sshd_config and authorized_keys (on Amazon Linux 2)
Upgraded mysql on Cloud9 (Amazon Linux) (5.5 to 5,7)
How to install packages on Alpine Linux
5 reasons to install Linux on your laptop.
Dockerfile: Install Docker on your Linux server
Install Mecab on Linux (CentOS) with brew
Run Keycloak on Amazon Linux 2 without Docker
How to install php7.4 on Linux (Ubuntu)
Install pyenv and Python 3.6.8 on Ubuntu 18.04 LTS
Install rJava on Linux in R3.6 environment.
Until you install Arch Linux on VMware
Linux "Install on / dev / sda" error resolution
Install pyenv and rbenv on CentOS system-wide