# How to install latest version of transformers?

**URL:** </static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fhow-to-install-latest-version-of-transformers%2F10876%3E%5C
**Category:** Beginners\
**Created:** [October 18, 2021, 4:06pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fhow-to-install-latest-version-of-transformers%2F10876 "2021-10-18T16:06:50Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Johncwok](https://avatars.discourse-cdn.com/v4/letter/j/c0e974/32.png) [@Johncwok](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2FJohncwok)%5C
**Post date:** [October 18, 2021, 4:06pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fhow-to-install-latest-version-of-transformers%2F10876%2F1 "2021-10-18T16:06:50Z")

</div>

No matter what command I try, I always end up with version `2.1.1` of transformers, where models such as the GPT2 do not accept the `input_embeds` arguments in the `forward` pass, which I really need.  
How can I install the latest version? I have tried with conda, with pip, I have tried updating but so far I am stuck with 2.1.1

---

<div class="post-metadata">

**Author:** ![Johncwok](https://avatars.discourse-cdn.com/v4/letter/j/c0e974/32.png) [@Johncwok](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2FJohncwok)%5C
**Post date:** [October 18, 2021, 4:26pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fhow-to-install-latest-version-of-transformers%2F10876%2F2 "2021-10-18T16:26:05Z")

</div>

Making a new virtual environment in which I re-installed everything solved my issue but I do not know why… Weird.
