我正在使用Django 1.4.5,并刚刚在virtualenv中安装了django-extensions。我正在使用Python 2.7.1。当我键入:Django_extensions无法使用iPython笔记本
./manage.py shell_plus --notebook
我得到的错误:
Traceback (most recent call last):
File "./manage.py", line 10, in <module>
execute_from_command_line(sys.argv)
File "/Users/.../lib/python2.7/site-packages/django/core/management/__init__.py", line 443, in execute_from_command_line
utility.execute()
File "/Users/.../lib/python2.7/site-packages/django/core/management/__init__.py", line 382, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/Users/.../lib/python2.7/site-packages/django/core/management/base.py", line 196, in run_from_argv
self.execute(*args, **options.__dict__)
File "/Users/.../lib/python2.7/site-packages/django/core/management/base.py", line 232, in execute
output = self.handle(*args, **options)
File "/Users/.../lib/python2.7/site-packages/django/core/management/base.py", line 371, in handle
return self.handle_noargs(**options)
File "/Users/.../lib/python2.7/site-packages/django_extensions/management/commands/shell_plus.py", line 140, in handle_noargs
run_notebook()
File "/Users/.../lib/python2.7/site-packages/django_extensions/management/commands/shell_plus.py", line 71, in run_notebook
from IPython.frontend.html.notebook import notebookapp
ImportError: No module named IPython.frontend.html.notebook
没有--notebook
选项正常工作。另外,ipython notebook
也能正常工作。
任何人都可以提出什么可能会出错吗?
谢谢!