Huggingface spaces python 3.12 support

Is python 3.12 really supported for spaces? I am getting

AttributeError: module 'pkgutil' has no attribute 'ImpImporter'. Did you mean: 'zipimporter'?

--> ERROR: process "/bin/sh -c pip install --no-cache-dir pip==22.3.1 && \tpip install --no-cache-dir \tdatasets \t\"huggingface-hub>=0.19\" \"hf-transfer>=0.1.4\" \"protobuf<4\" \"click<8.1\" \"pydantic~=1.0\"" did not complete successfully: exit code: 1

upon setup. This is a well known issue when pip is not upgraded to the latest version that is compatible with python 3.12

1 Like