Table of contents

에러

Google AI를 Python에서 활용할 때 아래와 같이 에러가 나는 경우가 있다.

Traceback (most recent call last):
  File "~~~.py", line 12, in <module>
    import google.generativeai as genai
ModuleNotFoundError: No module named 'google'

 

 

 

해결방법

아래의 모듈들을 설치한다.

pip install google-generativeai
pip install google-ai-generativelanguage