Django & virtualenv

Phil Dobbin phildobbin at gmail.com
Fri Aug 24 03:21:55 PDT 2012


Hi, all.

I'm getting:

`$ type virtualenv
bash: type: virtualenv: not found
[Fri Aug 24 10:52:03 dobbin at darkstar:~ ] $ type django-admin.py
bash: type: django-admin.py: not found
[Fri Aug 24 10:52:20 dobbin at darkstar:~ ] $ python
Python 2.7.3 (default, Apr 13 2012, 00:05:08)
[GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import django
>>> print django.get_version()
1.5
>>>
[Fri Aug 24 10:54:06 dobbin at darkstar:~ ] $ type python
python is hashed (/opt/local/bin/python)`

My PATH is set:

`export
PYTHONPATH=/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/`

&:

`$ python -c "from distutils.sysconfig import get_python_lib; print
get_python_lib()"
/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages
[Fri Aug 24 11:14:32 dobbin at darkstar:~ ] $ echo $PYTHONPATH
/opt/local/lib/python2.7/site-packages/
[Fri Aug 24 11:18:48 dobbin at darkstar:~ ] $ port select --list python
Available versions for python:
	none
	python25-apple
	python26-apple
	python27 (active)`

I had this working on py26 but I've since cleaned py25 & py26 out & only
use 2.7.3 (all from MacPorts). I'm thinking somehow I've set PYTHONPATH
wrong but I'm at a loss to figure it out & our friend Google waxes
lyrically about the subject for days.

Any help appreciated.

Cheers,

  Phil...

p.s. I've tried all different nomenclature of django i.e. django,
django-admin, django_just_work_you_son_of_a_bitch & so on...

-- 
But masters, remember that I am an ass.
Though it be not written down,
yet forget not that I am an ass.

    Wm. Shakespeare - Much Ado About Nothing


More information about the macports-users mailing list