huggingface fix: you either need to activate Developer Mode or to run Python as an administrator
Danny Chan

Danny Chan @danc

About: AWS Community Builder

Joined:
May 1, 2023

huggingface fix: you either need to activate Developer Mode or to run Python as an administrator

Publish Date: Aug 11 '24
12 0

Problem:

error message

C:\Users\xxx\AppData\Local\Programs\Python\Python39\lib\site-packages\huggingface_hub\file_download.py:159: UserWarning: huggingface_hub cache-system uses symlinks by default to efficiently store duplicated files but your machine does not support them in C:\Users\xxx.cache\huggingface\hub\models--baai--bge-large-en-v1.5. Caching files will still work but in a degraded version that might require more space on your disk. This warning can be disabled by setting the HF_HUB_DISABLE_SYMLINKS_WARNING environment variable. For more details, see https://huggingface.co/docs/huggingface_hub/how-to-cache#limitations.

To support symlinks on Windows, you either need to activate Developer Mode or to run Python as an administrator. In order to see activate developer mode, see this article: https://docs.microsoft.com/en-us/windows/apps/get-started/enable-your-device-for-development



solution:

Image description

Image description



Refernece:

https://learn.microsoft.com/en-us/windows/apps/get-started/enable-your-device-for-development

Comments 0 total

    Add comment