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

时间:2013-01-23 21:47:58

标签: python django pypi

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

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:\Python27\lib\site-packages\django-1.4.3-py2.7.egg\django\core\managem
ent\commands\runserver.py", line 111, in inner_run
    ipv6=self.use_ipv6, threading=threading)
  File "c:\Python27\lib\site-packages\django-1.4.3-py2.7.egg\django\core\servers
\basehttp.py", line 253, in run
    httpd.serve_forever()
  File "c:\Python27\Lib\SocketServer.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)

1 个答案:

答案 0 :(得分:0)

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

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