1
1

More than 1 year has passed since last update.

Amazon Linux 2 で Python3 の環境構築

Posted at

はじめに

EC2でPythonの動作環境を作るための手順です。

環境構築

Pythonインストール前のもろもろ
#!/bin/bash
sudo yum update -y
sudo cp /usr/share/zoneinfo/Japan /etc/localtime

(python3はインストール済みなら空振り)

python3のインストール
sudo yum install python3 -y
requestsのインストール
sudo pip3 install requests
boto3のインストール
sudo pip3 install boto3
pandasのインストール
sudo pip3 install pandas pandas-datareader

おわりに

何かあれば追加していきます。

全部入りインストールスクリプト
#!/bin/bash
sudo yum update -y
sudo cp /usr/share/zoneinfo/Japan /etc/localtime
sudo yum install python3 -y
sudo pip3 install requests
sudo pip3 install boto3
sudo pip3 install pandas pandas-datareader

参考文献

1
1
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
1
1