這裏是我的buildout.cfg:擴建安裝Django的,但不能導入
[buildout]
parts =
django
[versions]
djangorecipe = 1.5
django = 1.7
[django]
recipe = djangorecipe
project = timetable
eggs =
這是我在一個新的環境中設置項目常規:
virtualenv .
source bin/activate
easy_install -U setuptools
python bootstrap.py
bin/buildout -v
python manage.py migrate
當我運行斌/擴建,它說django已安裝,並且django二進制文件位於bin文件夾中。但是當我運行manage.py時,它無法導入django:
(timetable)[email protected]:~/timetable$ python manage.py migrate
Traceback (most recent call last):
File "manage.py", line 8, in <module>
from django.core.management import execute_from_command_line
ImportError: No module named django.core.management
但是,它在我使用pip安裝django時起作用。爲什麼不在我的virualenv中安裝django?我怎樣才能解決這個問題?