When installing django from an official release tarball onto Ubuntu
10.04 python 2.6, (python setup.py install) it installs to
/usr/local/lib/python2.6/dist-packages/ rather than
/usr/lib/python2.6/dist-packages (as reported by python -c "from
distutils.sysconfig import get_python_lib; print get_python_lib()").

Is this expected behaviour?  If so, the install instructions and
tutorial will need to be updated.  How should django best be imported
into a running python interpreter in this case?  import django
returns:
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: No module named django

I solved the problem by doing python setup.py build then manually
copying build/django into /usr/local/lib/python2.6/dist-packages, but
that is not a very user friendly procedure.

Is this an Ubuntu/python 2.6 specific issue?  Should the install
instructions be updated or is this a bug in the packaging?

Regards,
Tim Bowden

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

Reply via email to