Traceback (most recent call last):
File "manage.py", line 10, in <module> execute_from_command_line(sys.argv)
File "/Library/Python/2.7/site-packages/django/core/management/__init__.py", line 350, in execute_from_command_line
utility.execute()
File "/Library/Python/2.7/site-packages/django/core/management/__init__.py", line 324, in execute
django.setup()
File "/Library/Python/2.7/site-packages/django/__init__.py", line 18, in setup
apps.populate(settings.INSTALLED_APPS)
File "/Library/Python/2.7/site-packages/django/apps/registry.py", line 85, in populate
app_config = AppConfig.create(entry)
File "/Library/Python/2.7/site-packages/django/apps/config.py", line 90, in create
module = import_module(entry)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/importlib/__init__.py", line 37, in import_module
__import__(name)
File "/Library/Python/2.7/site-packages/social/__init__.py", line 5, in <module>
from .fsong import *
File "/Library/Python/2.7/site-packages/social/fsong.py", line 1, in <module>
import gmane as g, networkx as x, pylab as p, numpy as n, os
File "/Library/Python/2.7/site-packages/gmane/__init__.py", line 26, in <module>
from .networkEvolution import NetworkEvolution
File "/Library/Python/2.7/site-packages/gmane/networkEvolution.py", line 9, in <module>
from .pca import *
File "/Library/Python/2.7/site-packages/gmane/pca.py", line 79
def __init__(self,*metrics,final_dimensions=2,draw=False):
SyntaxError: invalid syntax
我已经使用pip安装了django并尝试运行python manage.py migrate。我面临上述错误。以前有人曾面对这个吗?我使用OSX和python版本是2.7.10,Django版本1.9