在Pycharm IDE下

 Edit Configurations  

  1.检查Python interpreter

  2.检查 Working directory

  3.Settings 数据库配置

相关文章: