什么导致 Python 套接字错误? [英] What causes Python socket error?

查看:28
本文介绍了什么导致 Python 套接字错误?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

  File "C:Python25libSocketServer.py", line 330, in __init__
    self.server_bind()
  File "C:Python25libBaseHTTPServer.py", line 101, in server_bind
    SocketServer.TCPServer.server_bind(self)
  File "C:Python25libSocketServer.py", line 341, in server_bind
    self.socket.bind(self.server_address)
  File "<string>", line 1, in bind
socket.error: (10013, 'Permission denied')

我尝试启动 Google App Engine 开发服务器并在我第一次尝试运行时收到此错误.有任何想法吗?我是 Python 新手.

I tried to start up the Google App Engine development server and received this error the first time I tried to run it. Any ideas? I'm new to python.

推荐答案

您可能试图在当前用户帐户没有绑定权限的端口上运行.这可能是端口 80 之类的.尝试增加端口号或使用具有足够权限的用户.

It might be possible that you are trying to run on a port the current user account does not have permission to bind to. This could be port 80 or something. Try increasing the portnumber or use a user with sufficient privileges.

希望能帮到你

这篇关于什么导致 Python 套接字错误?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆