Discuss / Python / 求助!win10环境 python代码运行助手 运行失败

求助!win10环境 python代码运行助手 运行失败

Traceback (most recent call last):

  File "learning.py", line 245, in <module>

    main()

  File "learning.py", line 114, in main

    httpd = HTTPServer(('127.0.0.1', PORT), LearningHTTPRequestHandler)

  File "C:\Users\热心市民小徐\AppData\Local\Programs\Python\Python37\lib\socketserver.py", line 449, in __init__

    self.server_bind()

  File "C:\Users\热心市民小徐\AppData\Local\Programs\Python\Python37\lib\http\server.py", line 139, in server_bind

    self.server_name = socket.getfqdn(host)

  File "C:\Users\热心市民小徐\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 0xd0 in position 2: invalid continuation byte

重启 改系统语言为英语都不管用 这可怎么办啊!!


  • 1

Reply