Transformer installation from sourrce

Hi I am trying to install the transformer library from source with this commands on my jupyter notebook;

!git clone https://github.com/huggingface/transformers
!cd transformers
!pip install .

but i keep getting this error:
ERROR: Directory ‘.’ is not installable. Neither ‘setup.py’ nor ‘pyproject.toml’ found.

I need some help trying to fix this, thank you for the time

If you are doing this in jupyter notebook or colab, then you should use %cd instead of !cd or

!git clone https://github.com/huggingface/transformers
!pip install -U ./transformers
3 Likes