Django & virtualenv

Phil Dobbin phildobbin at
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
bash: type: 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()
[Fri Aug 24 10:54:06 dobbin at darkstar:~ ] $ type python
python is hashed (/opt/local/bin/python)`

My PATH is set:



`$ python -c "from distutils.sysconfig import get_python_lib; print
[Fri Aug 24 11:14:32 dobbin at darkstar:~ ] $ echo $PYTHONPATH
[Fri Aug 24 11:18:48 dobbin at darkstar:~ ] $ port select --list python
Available versions for python:
	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.



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