to use and activate it.
Now, if you want to use 🤗 Transformers, you can install it with pip. If you'd like to play with the examples, you
must install it from source.
Installation with pip
First you need to install one of, or both, TensorFlow 2.0 and PyTorch.
Please refer to TensorFlow installation page,
PyTorch installation page and/or
Flax installation page
regarding the specific install command for your platform.
When TensorFlow 2.0 and/or PyTorch has been installed, 🤗 Transformers can be installed using pip as follows:
bash
pip install transformers
Alternatively, for CPU-support only, you can install 🤗 Transformers and PyTorch in one line with:
bash
pip install transformers[torch]
or 🤗 Transformers and TensorFlow 2.0 in one line with:
bash
pip install transformers[tf-cpu]
or 🤗 Transformers and Flax in one line with:
