10
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

AWS CloudShellのPythonバージョンを上げる方法

Posted at

個人的な備忘です。
デフォルトのPython 3.9はちょっと古すぎる😅

アプデ手順

CloudShell
# Python 3.12をインストール
sudo yum install python3.12

# シンボリックリンクを修正
sudo ln -sf /usr/bin/python3.12 /usr/bin/python3

# pipもアップグレード
sudo python -m ensurepip --upgrade

何が嬉しいの?

  • Lmabdaレイヤーをマネコンでサクッと作るとき
  • 新しいPythonライブラリを実行したいとき

参考文献

DENETさん、ありがとうございます!

10
2
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
10
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?