I'm trying to use huggingface transformers. (Win 11, Python 3.9, jupyternotebook, virtual environment)
When I ran code:
from transformers import pipeline
print(pipeline('sentiment-analysis')('I hate you'))
I got an error :
FileNotFoundError: [WinError 3] The system cannot find the path specified: 'C:\Users\user/.cache\huggingface'
There's no directory named '.cache' in my user folder, so I used cache_dir="./cache" but I want to change the path of the directory permanently.
P.S.
import os
os.environ['TRANSFORMERS_CACHE'] = './cache'
also didn't work.