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

lambdaレイヤー+ openai apiでimportエラーが起きる時の対策(備忘録)

Posted at

生成AIを使ったLine botをlambdaを使って作る際の備忘録です。

結論

下記のようなバージョンを指定する。

mkdir python
python3 -m pip install -t ./python fastapi==0.99.0 openai==0.28.0
zip -r openai.zip ./python

参考リンク

つまづくステップ

  • pydanticエラー
Unable to import module 'lambda_function': No module named 'pydantic_core._pydantic_core

  • jiterエラー
No module named 'jiter.jiter' 

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