初学者安装/运行Django ... Errno 10013? [英] Beginner installing/running Django... Errno 10013?

查看:85
本文介绍了初学者安装/运行Django ... Errno 10013?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以我是Python的相对新手,所以今天才尝试安装和运行Django。我正在按照官方教程进行操作,当我尝试运行python manage.py runserver时,我看到了Errno 10013:试图以一种受其访问权限禁止的方式访问套接字。

So I'm a relative novice with Python, and just tried installing and running Django today. I'm working my way through the official tutorial, and when I try to run the python manage.py runserver I get Errno 10013: an attempt was made to access a socket in a way forbidden by its access permissions.

我正在使用Windows 7,并且以管理员身份运行cmd.exe控制台。有人可以解释如何用纯英语解决此问题吗?本教程的下一步说要访问 http://127.0.0.1:8000/ ,并且应该说欢迎使用Django,但我的错误会带来一个错误。

I am using Windows 7, and am running the cmd.exe console as an administrator. Could someone please explain how to fix this in plain english? The next step in the tutorial says to visit http://127.0.0.1:8000/ and that it should say Welcome to Django, but mine just brings up an error.

在此先感谢您的帮助。

推荐答案

默认端口可能已在另一个程序中打开。请尝试以下操作:

The default port might be open in another program. Try the following:

python manage.py runserver 8080

如果这不起作用,则可能是权限问题。有人报告仅以管理员身份运行cmd.exe是不够的。有一些修复程序,但是很烦人,可能表明您的Python安装有些奇怪。首先尝试端口修复:-)

If that doesn't work, it might be a permissions problem. Some people have reported that just running cmd.exe as admin isn't enough. There are a few fixes for this, but they're annoying and probably indicate something's weird with your Python install. Try the port fix first :-)

编辑:刚刚读了一篇博客文章说,这对于运行Aptana / PyDev的人来说非常普遍。 Aptana的内部网络服务器使用端口8000(这是Django的默认端口)。

Just read a blog post saying this is very common with folks running Aptana/PyDev. Aptana's internal webserver uses port 8000, which is the Django default.

这篇关于初学者安装/运行Django ... Errno 10013?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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