2
儘管安裝了babel,但我還是覺得很開心,但惱火的是Flask和Babel不工作。Flask,Babel和python - ImportError:No module named babel
pip install babel
pip install Flask-Babel
Traceback (most recent call last):
File "run.py", line 8, in <module>
from app import app
File "/home/ubuntu/workspace//dashboard/app/__init__.py", line 3, in <module>
from flaskext.babel import Babel
ImportError: No module named babel
這是一個錯字:'從falskext.babel導入Babel'。它來自'flask.ext.babel import Babel' – atupal