H5Group = h5py.Group AttributeError: module 'h5py' has no attribute 'Group'

 

File E:\Eprogramfiles\Anaconda3\envs\myenvpy38\lib\site-packages\anndata\compat\__init__.py:22
     20 Index1D = Union[slice, int, str, np.int64, np.ndarray]
     21 Index = Union[Index1D, Tuple[Index1D, Index1D], spmatrix]
---> 22 H5Group = h5py.Group
     23 H5Array = h5py.Dataset
     26 # try importing zarr, dask, and zappy

AttributeError: module 'h5py' has no attribute 'Group'

 

h5py 2.10.0

 

解决方法:
pip uninstall h5py
pip install h5py==3.2.1
 

posted @ 2024-10-29 15:16  emanlee  阅读(40)  评论(0编辑  收藏  举报