파이썬 프로그래밍(Python Programming)

파이썬에서 DB 연동할 때 발생한 오류 해결 방법 <class TypeError >, TypeError( Invalid argument(s) encoding sent to create_engine(), using configuration MySQLDialect_mysqldb/QueuePool/Engine. Please check that the keyword arguments are appropriate for this combination of com

Com Baksa 2024. 6. 23. 20:00

(<class TypeError >, TypeError( Invalid argument(s) encoding sent to create_engine(), using configuration MySQLDialect_mysqldb/QueuePool/Engine. Please check that the keyword arguments are appropriate for this combination of components. ), <traceback object at 0x00000160B591A9C8>)

 

파이썬에서 Pycharm을 쓸 때 Mysql DB와 연동시 이와 같은 오류가 뜨면 

 

터미널에 들어가서 sqlalchemy 버전을 아래처럼 낮추어 주면 된다.

 

명령어는

 

pip install sqlalchemy==1.4.4