您的位置:首页 > 编程语言 > Python开发

【学习python】eclipse导入Flask报错,但程序执行正常

2014-09-29 16:17 387 查看
来源:http://stackoverflow.com/questions/14997336/how-to-make-eclipse-pydev-happy-to-see-flask-extensions-on-windows

The Eclipse uses static analysis of modules by default.
flask.ext
builds
import list dynamically. To force dynamic analysis using Python shell add
flask.ext
to
forced builtins list.

Go to
Preferences
-> PyDev -> Interpreters -> Python Interpreter
. Select your interpreter, go to
Forced
Builtins
tab. Click
New...
and
enter
flask.ext
.

This requires PyDev to forcefully analyze module through a shell.
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: