How can I see the installed version of transformers
How can I see which version of transformers I am using ? and how can I update it to the latest verison in case it is not up to date?
2020-10-21T13:35:15Z
try this commandprint(transformers.__version__)
2020-10-21T13:40:14Z
See this pagehttps://huggingface.co/transformers/installation.htmlwhich says you can install from source usinggit clone https://github.com/huggingface/transformers.git
cd transformers
pip install -e .(I haven’t tried that, as I’m using Colab which already has a recent version)
2020-10-21T13:47:22Z
The version thing did not work for me. But I found a workaround.pip uninstall transformerspip install transformersupdated the transformers from 3.1 to 3.4
2024-07-20T02:05:38Z
Try this-import transformersprint(transformers.version)