# Upgrading to transformers 4.9.1?

**URL:** </static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fupgrading-to-transformers-4-9-1%2F8999%3E%5C
**Category:** 🤗Transformers\
**Created:** [August 5, 2021, 2:45pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fupgrading-to-transformers-4-9-1%2F8999 "2021-08-05T14:45:25Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![olaffson](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/olaffson/32/2416_2.png) [@olaffson](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Folaffson)%5C
**Post date:** [August 5, 2021, 2:45pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fupgrading-to-transformers-4-9-1%2F8999%2F1 "2021-08-05T14:45:25Z")

</div>

Hello,

I am trying to upgrade to the latest distribution of transformers (`4.9.1` according to [Release v4.9.1: Patch release · huggingface/transformers · GitHub](https://github.com/huggingface/transformers/releases/tag/v4.9.1)).

I currently have the version `4.3.3` installed and it works fine. So, I downloaded the 4.9.1 zip file, extracted to a directory, `cd` to that directory and run `python setup.py install`.

The install went fine (except for the `huggingface-hub` requirement at the end — which is blocked by my firewall). However, when I start spyder again the version is still `4.3.3`.

Am I doing something wrong to update the package offline (on windows)?  
Thanks!

---

<div class="post-metadata">

**Author:** ![olaffson](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/olaffson/32/2416_2.png) [@olaffson](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Folaffson)%5C
**Post date:** [August 5, 2021, 4:10pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fupgrading-to-transformers-4-9-1%2F8999%2F2 "2021-08-05T16:10:19Z")

</div>

I was able to upgrade by using `pip` instead. Weird that the good old `python setup.py install` would not work in this case.

---

<div class="post-metadata">

**Author:** ![rxshah](https://avatars.discourse-cdn.com/v4/letter/r/a587f6/32.png) [@rxshah](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Frxshah)%5C
**Post date:** [January 22, 2025, 7:35pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fupgrading-to-transformers-4-9-1%2F8999%2F3 "2025-01-22T19:35:34Z")

</div>

I am trying to install transformers 4.9.1.  
I currently have 4.48.1.  
I tried with pip and with conda but tokenizer version is throwing error.  
It is looking for tokenizer 0.11 whereas I have tokenizer 0.21

My env has following package versions:

python 3.10  
torch 2.5.1  
pytorch-lightning 2.0.3  
pytorch-ingnite 0.5.1  
tensorboard 2.18

Looks like 4.9.1 is compatible with python 7!!

I will stick with the current version.  
Please close this question.  
Thanks for your help.

---

<div class="post-metadata">

**Author:** ![John6666](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/john6666/32/27664_2.png) [@John6666](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2FJohn6666)%5C
**Post date:** [January 23, 2025, 5:35am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fupgrading-to-transformers-4-9-1%2F8999%2F4 "2025-01-23T05:35:43Z")

</div>

4.48.1 is the latest version of pip at the moment. 4.9.1 is a version from four years ago. Because 48 is greater than 9.  
[https://pypi.org/project/transformers/4.9.1/](https://pypi.org/project/transformers/4.9.1/)
