python django 安装遇到了点问题

落枫眠 发布于 2014/03/25 12:05
阅读 3K+
收藏 0

我顺利的安装Django 并且创建了项目目录,可是在我执行以下操作时候,发生了下班问题,高手们谁能帮帮我这菜鸟,这是什么原因,怎解决  我的是虚拟机ubuntu10 上


xiaoxin@ubuntu :~/mysite$ python manage.py runserver

Traceback (most recent call last):
  File "manage.py", line 10, in <module>
    execute_from_command_line(sys.argv)
  File "/usr/local/lib/python2.7/dist-packages/Django-1.7b1-py2.7.egg/django/core/management/__init__.py", line 427, in execute_from_command_line
    utility.execute()
  File "/usr/local/lib/python2.7/dist-packages/Django-1.7b1-py2.7.egg/django/core/management/__init__.py", line 419, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "/usr/local/lib/python2.7/dist-packages/Django-1.7b1-py2.7.egg/django/core/management/__init__.py", line 290, in fetch_command
    klass = load_command_class(app_name, subcommand)
  File "/usr/local/lib/python2.7/dist-packages/Django-1.7b1-py2.7.egg/django/core/management/__init__.py", line 81, in load_command_class
    module = import_module('%s.management.commands.%s' % (app_name, name))
  File "/usr/lib/python2.7/importlib/__init__.py", line 37, in import_module
    __import__(name)
  File "/usr/local/lib/python2.7/dist-packages/Django-1.7b1-py2.7.egg/django/contrib/staticfiles/management/commands/runserver.py", line 4, in <module>
    from django.core.management.commands.runserver import Command as RunserverCommand
  File "/usr/local/lib/python2.7/dist-packages/Django-1.7b1-py2.7.egg/django/core/management/commands/runserver.py", line 15, in <module>
    from django.utils import autoreload
  File "/usr/local/lib/python2.7/dist-packages/Django-1.7b1-py2.7.egg/django/utils/autoreload.py", line 64, in <module>
    fd = pyinotify.INotifyWrapper.create().inotify_init()
AttributeError: 'module' object has no attribute 'INotifyWrapper'

加载中
0
wx---每日佳选
wx---每日佳选
重新安装django吧.
落枫眠
落枫眠
其实我已经重新安装过了,但是还是没有解决,但是我似乎找到了解决方案
0
落枫眠
落枫眠

后来我去google 'INotifyWrapper' 联系到了 'pythone 监视目录变更库pyinotify'https://github.com/seb-m/pyinotify

应该是要先安装这个东西(通过pip),但是我安装的时候其实已经安装好了,于是我便更新(一定用管理员身份),后来更新成功,此刻我便重新安装Django,一切正常了,本人初学python,所以希望跟大家共同进步.
python get-pip.py
pip install pyinotify
pip install pyinotify --upgrade

0
renwofei423
renwofei423

引用来自“塲塲梦,塲塲空.”的答案

后来我去google 'INotifyWrapper' 联系到了 'pythone 监视目录变更库pyinotify'https://github.com/seb-m/pyinotify

应该是要先安装这个东西(通过pip),但是我安装的时候其实已经安装好了,于是我便更新(一定用管理员身份),后来更新成功,此刻我便重新安装Django,一切正常了,本人初学python,所以希望跟大家共同进步.
python get-pip.py
pip install pyinotify
pip install pyinotify --upgrade

不错,自己解决了
落枫眠
落枫眠
谢谢,凑巧,以后会遇到跟多的问题
返回顶部
顶部