Hi Stan, If possible, I'd recommend (somehow) getting a pip built against your /usr/local/bin/python, then "/usr/local/bin/pip install django" should do what you want.
Collin On Wednesday, April 1, 2015 at 11:28:33 AM UTC-4, Stan wrote: > > > > On Wednesday, April 1, 2015 at 4:15:25 PM UTC+2, Markus Holtermann wrote: >> >> Hi Stan, >> >> how did you install Django? As a system package via the system's package >> manager or via pip. If its the system package manager, please raise that >> bug in the bug tracker of your Linux distribution. If the answer is "via >> pip", from where? PyPI or something obscure? >> > > A classical pip install Django command without --mirrors or --use-mirrors > modifier. > > I did some --upgrade, but the first installation is not 10 years old (2 > maybe). > > > Pip is a Debian package (1.1.3) > > [$ whereis django-admin > django-admin: /usr/local/bin/django-admin.py /usr/local/bin/django-admin > $ cat /usr/local/bin/django-admin > #!/usr/bin/python > # EASY-INSTALL-ENTRY-SCRIPT: > 'Django==1.7.4','console_scripts','django-admin' > __requires__ = 'Django==1.7.4' > import sys > from pkg_resources import load_entry_point > > if __name__ == '__main__': > sys.exit( > load_entry_point('Django==1.7.4', 'console_scripts', > 'django-admin')() > ) > $ cat /usr/local/bin/django-admin.py > #!/usr/bin/python > from django.core import management > > if __name__ == "__main__": > management.execute_from_command_line() > > > > >> As Collin already wrote, Django uses "/usr/bin/env python" for years. >> >> /Markus >> >> >> On April 1, 2015 3:58:13 PM GMT+02:00, Collin Anderson < >> cmawe...@gmail.com> wrote: >> >Hi Stan, >> > >> >In the source, it's looks like it's been using #!/usr/bin/env python >> >for >> >almost 10 years: >> >https://github.com/django/django/blame/master/django/bin/django-admin.py >> > >> >My quick guess is that gets modified when installing. Did you use the >> >newer >> >version of python to install django? >> > >> >Collin >> > >> >On Wednesday, April 1, 2015 at 7:46:34 AM UTC-4, Stan wrote: >> >> >> >> Hi devs, >> >> >> >> Is there a good reason for having the shebang line in django-admin.py >> >at >> >> #!/usr/bin/python >> >> "instead" of #!/usr/bin/env python ? >> >> >> >> My problem is I have a newer version of Python installed in >> >> */usr/local/opt/* declared in my PATH >> >> that I want to test but the hardcoded path to /usr/bin/python ignore >> >the >> >> PATH value. >> >> >> >> I know that virtualenv is the way to go... >> >> >> >> Thanks ! >> >> >> >> -- >> >> Stan >> >> >> >> -- You received this message because you are subscribed to the Google Groups "Django developers (Contributions to Django itself)" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-developers+unsubscr...@googlegroups.com. To post to this group, send email to django-developers@googlegroups.com. Visit this group at http://groups.google.com/group/django-developers. To view this discussion on the web visit https://groups.google.com/d/msgid/django-developers/170c7dfd-ecc3-4a6a-8c4f-9ceec79518c1%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.