Skip to content

Windows 11 Anaconda Python 3.10 requires specific versions of some libraries to function, and does not work in a default installation #339

@Jellybit

Description

@Jellybit

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions