transfer-learning-conv-ai
transfer-learning-conv-ai copied to clipboard
cannot import name 'cached_path' from 'transformers'
from transformers import cached_path ImportError: cannot import name 'cached_path' from 'transformers' (/root/anaconda3/envs/transformers/lib/python3.10/site-packages/transformers/init.py)
how to fix this???? i try many things for hours and nothing :/
I had to upgrade transformers version to 4.12.5. But be careful with the interact.py https://github.com/huggingface/transfer-learning-conv-ai/issues/98
Hope this helps thanks!
Hello. I have the same problem. when I want to install transformers==2.5.1 this error happens: Building wheels for collected packages: tokenizers error: subprocess-exited-with-error
× Building wheel for tokenizers (pyproject.toml) did not run successfully. │ exit code: 1 ╰─> See above for output.
note: This error originates from a subprocess, and is likely not a problem with pip. Building wheel for tokenizers (pyproject.toml) ... error ERROR: Failed building wheel for tokenizers Failed to build tokenizers ERROR: Could not build wheels for tokenizers, which is required to install pyproject.toml-based projects