LoginSignup
6
5

More than 3 years have passed since last update.

Amazon Linux2でpython3を使えるようにする

Posted at

amazon linux2にはデフォルトでpython3が入っていません。
なので以下手順をメモ

python3とboto3をインストール

sudo yum install python3
curl -O https://bootstrap.pypa.io/get-pip.py
python3 get-pip.py --user
pip install boto3 --user

pythonのデフォルトにする場合

vi .bash_profile
    alias python=python3
source .bash_profile
6
5
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
6
5