system error: 10048 - Only one usage of each socket address (protocol/network address/port) is norma

Python报错:

RuntimeError: The server socket has failed to listen on any local network address. The server socket has failed to bind to [DESKTOP-7FQDOK8]:6699 (system error: 10048 - Only one usage of each socket address (protocol/network address/port) is normally permitted.).

解决方法:端口被正在运行的相同程序或不同程序占用了(这里是6699)。更改为其他数值的端口就好。

你可能感兴趣的:(Python,python,报错)