Thursday, October 27, 2011

Re: No module named django after upgrade to os x Lion

On Thu, Oct 27, 2011 at 7:17 AM, angelika <angelika.olsson@gmail.com> wrote:
> Hello,
>
> I'm new to both Python and Django. A few months ago, I installed
> Django on my mac (running Snow Leopard). I took me quite some time,
> but I got it running. After that I didn't get around to doing anything
> with it. A few weeks ago, I upgraded my mac to run Lion and now, when
> I type import django in the python interpreter, it says No module
> named django.
>
> I found someone who had had a similar problem, and I'm guessing it
> could be connected to the fact that Lion comes with Python 2.7.1? My
> Django version is 1.2.5. Again, I know almost nothing about Python, so
> I could be way off base. Any ideas how I can solve this, or find out
> what the problem is?
>
> /Angelika
>

Python packages are installed for a specific minor version of python.
If you upgrade your minor version of python, then you will need to
reinstall all the python packages you use for that specific minor
version of python.

By 'minor version', I mean this: Python 2.7.1 has major version 2,
minor version 7 and minor minor version 1. You need to reinstall
whenever you change major or minor version.

Cheers

Tom

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

No comments:

Post a Comment