SQLAlchemy AttributeError: 'module' object has no attribute 'PandasSQLAlchemy'

后端 未结 2 1921
长发绾君心
长发绾君心 2021-01-25 03:06

I\'m writing a pandas Dataframe to a Postgres database:

from sqlalchemy import create_engine, MetaData
engine = create_engine(r\'postgresql://user:password@local         


        
2条回答
  •  刺人心
    刺人心 (楼主)
    2021-01-25 03:57

    I have encountered this error recently and it was solved my removing the .pyc files located in the same directory as .py files. These files (.pyc) holds the previous version information and time, date.

提交回复
热议问题