运行django manage.py时出现如下错误:
[root@va3 hello]# python manage.py shell
Traceback (most recent call last):
File "manage.py", line 11, in <module>
execute_manager(settings)
File "/usr b/python2.6/site-packages/django/core/management/__init__.py", line 362, in execute_manager
utility.execute()
File "/usr b/python2.6/site-packages/django/core/management/__init__.py", line 303, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/usr b/python2.6/site-packages/django/core/management/base.py", line 195, in run_from_argv
self.execute(*args, **options.__dict__)
File "/usr b/python2.6/site-packages/django/core/management/base.py", line 222, in execute
output = self.handle(*args, **options)
File "/usr b/python2.6/site-packages/django/core/management/base.py", line 351, in handle
return self.handle_noargs(**options)
File "/usr b/python2.6/site-packages/django/core/management/commands/shell.py", line 29, in handle_noargs
shell = IPython.Shell.IPShell(argv=[])
AttributeError: 'module' object has no attribute 'Shell'
[root@va3 hello]#
解决方法很简单:
sudo pip uninstall ipython
sudo pip install ipython==0.10