How to install huggingface libraries

When you want to play with Natural Language Processing (NLP), you want Transformers – developed by Huggingface. Currently, this is SOTA and is used also outside NLP field (with great success).

So, you have created your conda environment and you installed pytorch libraries in it. Now, it is time to install transformers – a library.

First, the terminal install is described here. For brewity:

conda install -c huggingface transformers

Side note: -c means channel, so this command will install transformers, from the channel huggingface.

And when (not IF, but WHEN) you will get into trouble (like you will be missing datasets:

pip install datasets