[SciPy-user] Accessing modules in packages
Dave Bazell
bazell at comcast.net
Mon Dec 16 15:09:10 EST 2002
I am trying to use scipy.cluster.vq.kmeans. I have imported scipy:
> import scipy
and tried cluster.vq.kmeans(..) but I get an error "no module vq in cluster"
or something like that.
I have tried
from scipy import *
from scipy.cluster import *
and
from scipy.cluster.vq import *
but none of these allow me to access cluster.vq.kmeans.
If I copy the vq.py file to my working directory and do
import vq
then I can access it.
What am I doing wrong? I am sure this is a simple thing to answer and
displays my current (but decreasing) ignorance of python.
Thanks,
Dave Bazell
More information about the SciPy-User
mailing list