摘要:
>>>from django.db import connectionTraceback (most recent call last): File "<stdin>", line 1, in <module> File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/django/db/__init__.py", line 14, in <module> if not settings.DA 阅读全文
摘要:
第一个悲剧是,编译无法找到llvm-gcc-4.2,解决方法:sudo CC=/usr/bin/gcc python setup.py build第二个悲剧是,找不到Python.h,因为MacOS lion用的是2.7的python,偏偏又没有头文件,没办法,用2.6的吧:先把/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7改个名字,然后:sudo ln -s /System/Library/Frameworks/Python.framework/Versions/2.6/include/py 阅读全文