weixin_40187983 2018-10-26 06:02 采纳率: 100%
浏览 2339
已结题

python配置问题,API设置

各位大神能帮我看我的python在配置时,出现了什么了问题了吗?

原本的电脑只会执行到 * Debugger PIN: 228-383-603这行就停止
新配置的电脑,会出现下面的字串

感谢

 * Serving Flask app "api" (lazy loading)
  • Environment: production WARNING: Do not use the development server in a production environment. Use a production WSGI server instead.
  • Debug mode: on
  • Restarting with stat
  • Debugger is active!
  • Debugger PIN: 228-383-603 Exception in thread Thread-1: Traceback (most recent call last): File "C:\Users\Administrator\AppData\Local\Programs\Python\Python37\lib\threading.py", line 917, in bootstrap_inner self.run() File "C:\Users\Administrator\AppData\Local\Programs\Python\Python37\lib\threading.py", line 865, in run self._target(*self._args, **self._kwargs) File "C:\Users\Administrator\AppData\Local\Programs\Python\Python37\lib\site-packages\werkzeug\serving.py", line 774, in inner fd=fd) File "C:\Users\Administrator\AppData\Local\Programs\Python\Python37\lib\site-packages\werkzeug\serving.py", line 660, in make_server passthrough_errors, ssl_context, fd=fd) File "C:\Users\Administrator\AppData\Local\Programs\Python\Python37\lib\site-packages\werkzeug\serving.py", line 577, in __init_ self.address_family), handler) File "C:\Users\Administrator\AppData\Local\Programs\Python\Python37\lib\socketserver.py", line 449, in init self.server_bind() File "C:\Users\Administrator\AppData\Local\Programs\Python\Python37\lib\http\server.py", line 139, in server_bind self.server_name = socket.getfqdn(host) File "C:\Users\Administrator\AppData\Local\Programs\Python\Python37\lib\socket.py", line 676, in getfqdn hostname, aliases, ipaddrs = gethostbyaddr(name) UnicodeDecodeError: 'utf-8' codec can't decode byte 0xc5 in position 2: invalid continuation byte
  • 写回答

2条回答 默认 最新

  • threenewbee 2018-10-26 06:06
    关注

    这只是警告,你如果是开发环境,可以忽略。如果是部署到生产环境,用wsgi server代替

    评论

报告相同问题?

悬赏问题

  • ¥15 素材场景中光线烘焙后灯光失效
  • ¥15 请教一下各位,为什么我这个没有实现模拟点击
  • ¥15 执行 virtuoso 命令后,界面没有,cadence 启动不起来
  • ¥50 comfyui下连接animatediff节点生成视频质量非常差的原因
  • ¥20 有关区间dp的问题求解
  • ¥15 多电路系统共用电源的串扰问题
  • ¥15 slam rangenet++配置
  • ¥15 有没有研究水声通信方面的帮我改俩matlab代码
  • ¥15 ubuntu子系统密码忘记
  • ¥15 保护模式-系统加载-段寄存器