python manage.py runserver:属性错误:'module'对象没有属性'select'



运行命令后,将显示以下内容:

Validating models...
0 errors found
Django version 1.4.3, using settings 'app.settings'
Development server is running at localhost:8000/
Quit the server with CTRL-BREAK.
Unhandled exception in thread started by <bound method Command.inner_run of <dja
ngo.contrib.staticfiles.management.commands.runserver.Command object at 0x000000
00033BBD30>>
Traceback (most recent call last):
  File "c:Python27libsite-packagesdjango-1.4.3-py2.7.eggdjangocoremanagem
entcommandsrunserver.py", line 111, in inner_run
    ipv6=self.use_ipv6, threading=threading)
  File "c:Python27libsite-packagesdjango-1.4.3-py2.7.eggdjangocoreservers
basehttp.py", line 253, in run
    httpd.serve_forever()
  File "c:Python27LibSocketServer.py", line 225, in serve_forever
    r, w, e = select.select([self], [], [], poll_interval)
AttributeError: 'module' object has no attribute 'select'

知道问题是什么吗?

我已经尝试卸载并再次安装(setuptools,pypi,django,requests)

我在使用Flask应用程序时遇到了这个问题。

意识到我创建了一个名为"select.py"的脚本,所以我不得不重命名它并删除"select.pyc"。

最新更新