1

运行命令后,显示如下:

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)

4

1 回答 1

0

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

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

于 2013-05-04T22:53:12.380 回答