I have Python 2.6 & 3.1 installed on Leopard via mac ports with no problems. I want to install Django 1.2 via mac ports for Python 2.6, but a google search of how to do it seems to point me in the wrong direction. Can anyone point me in the right direction? Thanks again.....
+1
A:
Just don't do that. Install it directly from source.
Or better, use easy_install:
easy_install django
Or even better, use pip (and add virtualenv as a bonus (and virtualenvwrapper for more fun!)):
pip install django
Etienne
2010-06-29 00:25:06
why would i not install via macports??? is there an easy_uninstall yet?
hop
2010-06-29 00:29:08
Because thats not really flexible. Pip and virtualenv are the way to go. There's an uninstall with pip. And with virutalenv you can control which python libs and interpreter you want to use for each different project. Also note that Django doesn't work with python 3.1.
Etienne
2010-06-29 01:03:03
Agree with Etienne. I don't like MacPorts anyway, but it is most useful when you're installing things like PIL that need compiling. Django is a purely Python library and can be 'installed' by simply symlinking to it.
Daniel Roseman
2010-06-29 08:13:34
If you're going to install python from MacPorts, it makes sense to stick with MacPorts for django as well; certainly for more complicated packages like PIL. There's really no need for virtualenv in that case, especially on OS X where python framework builds make it much easier to deal with multiple python installations, if that is a consideration. But why make life more difficult? One command should install django and all necessary dependencies. `sudo port install py26-django`
Ned Deily
2010-07-01 02:16:04
demet8
2010-07-01 12:51:01
+1
A:
What is wrong with this package?
$ port info py26-django
py26-django @1.2.1 (python, www)
Variants: bash_completion, universal
Description: Django is a high-level Python Web framework that
encourages rapid development and clean, pragmatic design.
Homepage: http://www.djangoproject.com
Library Dependencies: python26, py26-distribute
Platforms: darwin
License: unknown
Maintainers: [email protected]
hop
2010-06-29 00:28:04
A:
Just "throw" the django tarball within the site-packages (dist-packages in py2.6+) and you are done. What for do you need macports etc, with a pure python library?
Lakshman Prasad
2010-06-29 08:38:32
Thanks Lakshman. It should work the way you suggested but I believe my paths are not set up correctly. I am working to resolve it now. Thank you....
demet8
2010-07-01 12:52:44