I'm running python 3.10 in Anaconda on Windows 11. On a fresh install, I was getting this:
ImportError: cannot import name 'ModelFilter' from 'huggingface_hub' (C:\Users\USER\anaconda3\envs\whisper\lib\site-packages\huggingface_hub_init_.py)
Then I changed huggingface-hub from version 0.34.4 to 0.23.5, which fixed that error.
Then I was getting this:
packages\datasets\features\features.py", line 634, in
class _ArrayXDExtensionType(pa.PyExtensionType):
AttributeError: module 'pyarrow' has no attribute 'PyExtensionType'. Did you mean: 'ExtensionType'?
and had to change datasets from 2.14.4 to 2.14.0, and pyarrow from 21.0.0 to 10.0.1. Then it worked.
In summary, for this to function, I needed these versions of the following, which differ from the default installation:
huggingface-hub==0.23.5
datasets==2.14.0
pyarrow==10.0.1