transfer-learning-conv-ai icon indicating copy to clipboard operation
transfer-learning-conv-ai copied to clipboard

cannot import name 'cached_path' from 'transformers'

Open ncorbuk opened this issue 2 years ago • 3 comments

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)

ncorbuk avatar Feb 18 '23 19:02 ncorbuk

how to fix this???? i try many things for hours and nothing :/

ncorbuk avatar Feb 18 '23 19:02 ncorbuk

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!

cgusti avatar Apr 25 '23 03:04 cgusti

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