Traceback (most recent call last):
File "models.py", line 183, in <module>
db.create_all()
File "C:\Users\Administrator\movie_venv\lib\site-packages\flask_sqlalchemy\__init__.py", line 1007, in create_all
self._execute_for_all_tables(app, bind, 'create_all')
File "C:\Users\Administrator\movie_venv\lib\site-packages\flask_sqlalchemy\__init__.py", line 999, in _execute_for_all_tables
op(bind=self.get_engine(app, bind), **extra)
File "C:\Users\Administrator\movie_venv\lib\site-packages\flask_sqlalchemy\__init__.py", line 941, in get_engine
return connector.get_engine()
File "C:\Users\Administrator\movie_venv\lib\site-packages\flask_sqlalchemy\__init__.py", line 543, in get_engine
self._engine = rv = sqlalchemy.create_engine(info, **options)
File "C:\Users\Administrator\movie_venv\lib\site-packages\sqlalchemy\engine\__init__.py", line 387, in create_engine
return strategy.create(*args, **kwargs)
File "C:\Users\Administrator\movie_venv\lib\site-packages\sqlalchemy\engine\strategies.py", line 80, in create
dbapi = dialect_cls.dbapi(**dbapi_args)
File "C:\Users\Administrator\movie_venv\lib\site-packages\sqlalchemy\dialects\mysql\mysqldb.py", line 110, in dbapi
return __import__('MySQLdb')
ModuleNotFoundError: No module named 'MySQLdb'
老师如果需要更多代码,请提示我需要给出哪段代码,感谢!