LoginSignup
0
0

More than 3 years have passed since last update.

EC2(Amazon Linux)にpyenvをインストール

Posted at

ECにpyenvをインストールする際に何点かつまずいたのでメモ

# gitをインストール
yum install git 
# pyenvをクローン
git clone https://github.com/pyenv/pyenv.git ~/.pyenv 
# 環境変数に追加
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"
# 依存ソフトウェアをインストール
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
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0