Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why aren't transformers imported in Python?

I want to import transformers in jupyter notebook but I get the following error. What is the reason for this error? My Python version is 3.8

ImportError: cannot import name 'TypeAlias' from 'typing_extensions'

I also updated the typing-extensions library version, but the problem was not resolved

like image 792
M_Eng Avatar asked Aug 13 '26 08:08

M_Eng


1 Answers

You could try

pip install typing-extensions --upgrade
like image 100
Ida Marie Avatar answered Aug 15 '26 23:08

Ida Marie



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!