importerror:没有名为django的模块

Ale*_*lex 6 django

我在mac的2.5.2版本旁边安装了python 2.6.我一做到这一点,python2.6 manage.py runserver就失败了,因为找不到django.core.management.

从shell中,import django返回importerror:没有名为django的模块.

为什么?

Est*_*ber 3

重新安装了Django吗?

当我在 Gentoo 上安装并行版本的 Python 时,就会发生这种情况。每当我安装新版本时,我必须重新安装新版本或创建到旧版本的符号链接site-packages