Linux下debug出错
来源:4-6 日志系统
jwk2
2019-04-22
if __name__=="__main__":
app.run( host="0.0.0.0", debug=True)
(imooc) [root@localhost order]# ls
common Hello.py imooc.py pycache
(imooc) [root@localhost order]# python Hello.py
- Serving Flask app “Hello” (lazy loading)
- Environment: production
WARNING: Do not use the development server in a production environment.
Use a production WSGI server instead. - Debug mode: on
- Running on http://0.0.0.0:5000/ (Press CTRL+C to quit)
- Restarting with stat
Traceback (most recent call last):
File “Hello.py”, line 37, in
app.run( host=“0.0.0.0”, debug=True)
File “/root/imooc/lib/python3.5/site-packages/flask/app.py”, line 943, in run
run_simple(host, port, self, **options)
File “/root/imooc/lib/python3.5/site-packages/werkzeug/serving.py”, line 988, in run_simple
run_with_reloader(inner, extra_files, reloader_interval, reloader_type)
File “/root/imooc/lib/python3.5/site-packages/werkzeug/_reloader.py”, line 332, in run_with_reloader
sys.exit(reloader.restart_with_reloader())
File “/root/imooc/lib/python3.5/site-packages/werkzeug/_reloader.py”, line 176, in restart_with_reloader
exit_code = subprocess.call(args, env=new_environ, close_fds=False)
File “/usr/local/python3/lib/python3.5/subprocess.py”, line 560, in call
with Popen(*popenargs, **kwargs) as p:
File “/usr/local/python3/lib/python3.5/subprocess.py”, line 950, in init
restore_signals, start_new_session)
File “/usr/local/python3/lib/python3.5/subprocess.py”, line 1540, in _execute_child
raise child_exception_type(errno_num, err_msg)
OSError: [Errno 8] Exec format error
(imooc) [root@localhost order]#
求教大神这个如何解决?
写回答
3回答
-
你好
我的个人 QQ:1586538192
022019-04-22 -
编程浪子
2019-04-22
你好,因为 werkzeug 版本太高了
pip uninstall werkzeug
pip install werkzeug==0.14.1
312020-03-11 -
编程浪子
2019-04-22
你好
建议通过课程群找我的QQ,私聊。最近好像也有一个遇到这个问题
022019-04-22
相似问题