(venv) X:\Users\Administrator\Desktop\python\29\Travel>python manage.py do init
Traceback (most recent call last):
File "manage.py", line 8, in <module>
app = create_app('default')
File "X:\Users\Administrator\Desktop\python\29\Travel\app\__init__.py", line 15, in create_app
from app.home import home as home_blueprint
File "X:\Users\Administrator\Desktop\python\29\Travel\app\home\__init__.py", line 7, in <module>
import app.home.views
File "X:\Users\Administrator\Desktop\python\29\Travel\app\home\views.py", line 4, in <module>
from app.home.forms import LoginForm,RegisterForm,SuggetionForm
File "X:\Users\Administrator\Desktop\python\29\Travel\app\home\forms.py", line 7, in <module>
class RegisterForm(FlaskForm):
File "X:\Users\Administrator\Desktop\python\29\Travel\app\home\forms.py", line 23, in RegisterForm
Email("邮箱格式不正确!")
File "X:\Users\Administrator\Desktop\python\29\Travel\venv\lib\site-packages\wtforms\validators.py", line 332, in __init__
raise Exception("Install 'email_validator' for email validation support.")
Exception: Install 'email_validator' for email validation support.
---
(venv) X:\Users\Administrator\Desktop\python\29\Travel>python manage.py runserver
Traceback (most recent call last):
File "manage.py", line 8, in <module>
app = create_app('default')
File "X:\Users\Administrator\Desktop\python\29\Travel\app\__init__.py", line 15, in create_app
from app.home import home as home_blueprint
File "X:\Users\Administrator\Desktop\python\29\Travel\app\home\__init__.py", line 7, in <module>
import app.home.views
File "X:\Users\Administrator\Desktop\python\29\Travel\app\home\views.py", line 4, in <module>
from app.home.forms import LoginForm,RegisterForm,SuggetionForm
File "X:\Users\Administrator\Desktop\python\29\Travel\app\home\forms.py", line 7, in <module>
class RegisterForm(FlaskForm):
File "X:\Users\Administrator\Desktop\python\29\Travel\app\home\forms.py", line 23, in RegisterForm
Email("邮箱格式不正确!")
File "X:\Users\Administrator\Desktop\python\29\Travel\venv\lib\site-packages\wtforms\validators.py", line 332, in __init__
raise Exception("Install 'email_validator' for email validation support.")
Exception: Install 'email_validator' for email validation support.