Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cannot import name 'cached_path' from 'transformers' #132

Open
ncorbuk opened this issue Feb 18, 2023 · 3 comments
Open

cannot import name 'cached_path' from 'transformers' #132

ncorbuk opened this issue Feb 18, 2023 · 3 comments

Comments

@ncorbuk
Copy link

ncorbuk commented Feb 18, 2023

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
Copy link
Author

ncorbuk commented Feb 18, 2023

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

@cgusti
Copy link

cgusti commented Apr 25, 2023

I had to upgrade transformers version to 4.12.5. But be careful with the interact.py #98

Hope this helps thanks!

@seyed-mohammadreza-mousavi

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants