python - h5py not installing properly on canopy? -
i programme in python , use os x yosemite version 10.10.2. have installed h5py 2.5.0-1 in enthought canopy using package manager. so, h5py 2.5.0-1 has appeared in installed packages in canopy little green tick besides it.
however, when test it, using code below or other code related h5py, gives me error:
this test code:
import h5py import numpy np f = h5py.file('test.hdf5', 'w')
this error:
1 import h5py 2 import numpy np ----> 3 f = h5py.file('test.hdf5', 'w') 4 5 attributeerror: 'module' object has no attribute 'file'
as additional information, numpy package works properly.could me please? thank in advance!
Comments
Post a Comment