ImportError: cannot import name 'PegasusTokenizer' from 'transformers' 
@patrickvonplaten 
Tried:
from transformers import PegasusTokenizer
import torch
Output:
---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)
/tmp/ipykernel_7943/3816365261.py in <cell line: 1>()
----> 1 from transformers import PegasusTokenizer
      2 import torch

ImportError: cannot import name 'PegasusTokenizer' from 'transformers' 

Can you check transformers version and update it, if too old?

It's work fine for me:
```
In [1]: from transformers import PegasusTokenizer

In [2]: import transformers

In [3]: transformers.__version__
Out[3]: '4.23.1'
```<|||||>Gently pinging @ArthurZucker here<|||||>Hey, as mentioned you are probably using an old version of transformers. I am not able to reproduce this bug. You should use `transformers>=3.1` as `Pegasus` was first introduced in the [release 3.1](https://github.com/huggingface/transformers/releases?q=PegasusForConditionalGeneration&expanded=true)<|||||>Did you find any solution for this problem?
<|||||>Yes, as mentioned in my previous answer, updating `transformers` 🤗 <|||||>> Yes, as mentioned in my previous answer, updating `transformers` hugs

This worked for me. Thanks!<|||||>Thank you. It seems to work for me too!