Uninstalling and installing the datasets package repeatedly resulted in the problem of ImportError: cannot import name 'HfFolder'.
After checking a lot, I finally violently opened the server environment /home/laq/anaconda3/envs/NEP/lib/python3.6/site-packages. Found two packages
The folder to be adjusted below is empty.
so. . . . Violently deleted, but the conda list will still be there in the future.
But the error became huggingface_hub not found.
Then I saw this online:
To be honest, if there is a Chinese article, I will not read this one.
pip install "sagemaker>=2.69.0" "transformers==4.12.3" --upgrade
pip install "datasets==1.13" --upgrade
At the same time, the installation problems of huggingface_hub and datasets are solved.
Commemorate this day when I broke through myself and started reading English posts.
I hope everyone can continue to make breakthroughs.