python3.6.3直接报错啊,萌比ing
Topic source"D:\Program Files\Python36\python.exe" D:/JetBrains/PycharmProjects/Blog_Python/www/app.py
Traceback (most recent call last):
File "D:\Program Files\Python36\lib\asyncio\base_events.py", line 1044, in create_server
sock.bind(sa)
OSError: [WinError 10048] 通常每个套接字地址(协议/网络地址/端口)只允许使用一次。
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "D:/JetBrains/PycharmProjects/Blog_Python/www/app.py", line 30, in <module>
loop.run_until_complete(init(loop))
File "D:\Program Files\Python36\lib\asyncio\base_events.py", line 467, in run_until_complete
return future.result()
File "D:/JetBrains/PycharmProjects/Blog_Python/www/app.py", line 24, in init
server = await loop_.create_server(app.make_handler(), '127.0.0.1', 9000)
File "D:\Program Files\Python36\lib\asyncio\base_events.py", line 1048, in create_server
% (sa, err.strerror.lower()))
OSError: [Errno 10048] error while attempting to bind on address ('127.0.0.1', 9000): 通常每个套接字地址(协议/网络地址/端口)只允许使用一次。
Process finished with exit code 1
我也是报这个错误,根据你说的修改端口号,也不能行; 然后显示是这样的。 D:\learning\python\python.exe E:/awesome-python3-webapp/www/static/app.py INFO:root:server started at http://127.0.0.1:9005...
- 1
风逝紫玄