How to set the Python version in Hugging Face Space?

Hi. For me helped next instructions:

!python -m pip install --upgrade pip
!pip install --upgrade peft gcsfs
!pip install --upgrade bitsandbytes
!pip install --force-reinstall numpy==1.26.4

The problem has appeared just recently after updates of peft and bitsanbytes.

2 Likes