0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

Pythin 3.10 の pip にアップグレード & request ライブラリの Lambda レイヤーを作成する方法

Posted at

Lambda で requests を使いたかったので、Lambda レイヤーを作成する時に Pything 3.10 の pip に切り替えて requests の zip ファイルパッケージを作ったときのメモ書き

MacOS の Homebrew での作業です。

$ brew install python@3.10
# python3.10 -m pip install --upgrade pip
$ pip --version
pip 23.2.1 from /usr/local/lib/python3.10/site-packages/pip (python 3.10)
$ mkdir python
$ pip install -t python requests==2.28.2
$ zip -r9 layer.zip python
  • Lambda Layer を追加
  • Lambda 関数に Layer を紐付け

参考
https://stackoverflow.com/questions/54409696/upgrading-pip-for-different-versions-of-python
https://sebenkyo.com/2021/05/21/post-1979/

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?