On Monday, July 8, 2013 5:18:21 PM UTC-4, Drew Ferguson wrote: > > Yo > > You have 2 versions of python installed: > > * python 2.6 installed probably in /usr/bin and using /usr/lib/python2.6 > > * python 2.7 installed in /usr/local/bin and possibly /usr/lib/python2.7 > > You need to decide which one you want to use and deal with the tools and > binaries installed for the version to be rejected e.g. pip is currently > installed for 2.6 whereas the default python is 2.7. > > The fact that 2.7 is installed in /usr/local/bin suggests this was a > manual build > > Also you should consider using virtualenv or similar > > > https://docs.djangoproject.com/en/1.5/topics/install/#install-the-django-code > > On Mon, 8 Jul 2013 15:58:10 -0400 > "Yves S. Garret" <yoursurr...@gmail.com <javascript:>> wrote: > > > Ok, just installed Django anew with pip (first did uninstall, then > > install). > > > > This is what I have: > > > > $ django-admin.py help > > Traceback (most recent call last): > > File "/usr/bin/django-admin.py", line 5, in <module> > > management.execute_from_command_line() > > File > > > > "/usr/lib/python2.6/site-packages/django/core/management/__init__.py", > > > > line 453, in execute_from_command_line > > utility.execute() > > File > > "/usr/lib/python2.6/site-packages/django/core/management/__init__.py", > > line 359, in execute > > version=get_version(), > > File "/usr/lib/python2.6/site-packages/django/__init__.py", line 6, in > > get_version > > from django.utils.version import get_version > > ImportError: cannot import name get_version > > $ python > > > > Python 2.7.5 (default, Jun 6 2013, 18:46:06) > > > > [GCC 4.4.6 20120305 (Red Hat 4.4.6-4)] on linux2 > > Type "help", "copyright", "credits" or "license" for more information. > > >>> import django > > Traceback (most recent call last): > > File "<stdin>", line 1, in <module> > > ImportError: No module named django > > > > > > On Mon, Jul 8, 2013 at 2:10 PM, Yves S. Garret > > <yoursurr...@gmail.com <javascript:>>wrote: > > > > > I've gone through the entire django install steps and when I fired up > > > my Python shell > > > (python 2.7.5, to be exact) and did import django, this is what I got: > > > > > > >>> import django > > > Traceback (most recent call last): > > > File "<stdin>", line 1, in <module> > > > ImportError: No module named django > > > > > > sudo python setup.py install should have done it, yes? If not, what > > > am I missing? > > > > > > > > > -- > Drew Ferguson > AFC Commercial > http://www.afccommercial.co.uk >
Yes, 2.7 is a manual build and I'd like to use 2.7. Any way I can go that route? -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at http://groups.google.com/group/django-users. For more options, visit https://groups.google.com/groups/opt_out.