nlp-with-transformers / notebooks

Jupyter notebooks for the Natural Language Processing with Transformers book
https://transformersbook.com/
Apache License 2.0
3.7k stars 1.13k forks source link

Failed to install base requirements #96

Open oscarwooberry opened 1 year ago

oscarwooberry commented 1 year ago

Information

The problem arises in chapter:

Describe the bug

image

The notebook used to work fine until this week. I can't install the base requirements and keep pop up this error for all chapters.

To Reproduce

Steps to reproduce the behavior:

1. 2. 3.

Expected behavior

itoh5588 commented 1 year ago

I had exactly the same issue. I fixed it, adding the following one line to the top of ch2 notebook. It needs Rust compiler. !apt install cargo

SnapCrab_NoName_2023-5-7_16-8-54_No-00

dat-boris commented 1 year ago

Thanks for the suggested for installing cargo - I ran into this with Chap 1 also - seems like tokenizers lib needs Rust to compile its wheel.

Added a potential fix at https://github.com/nlp-with-transformers/notebooks/pull/98

theAfricanQuant commented 1 year ago

I had exactly the same issue. I fixed it, adding the following one line to the top of ch2 notebook. It needs Rust compiler. !apt install cargo

SnapCrab_NoName_2023-5-7_16-8-54_No-00

This worked for me really

Thanks for posting it

gus07ven commented 1 year ago

You may need to change other requirement versions too. I'd check the requirements.txt and install.py for the specific chapter. For example, this is what worked for me for chapter 2:

!apt install cargo -y
!apt install git-lfs
!pip install transformers==4.13.0 datasets==2.8.0 tokenizers==0.10.3
d-yoshioka093 commented 1 year ago

I am still getting the same error output. Is there any other work that needs to be done besides adding it to the first line? I envy you all 😢.

image

d-yoshioka093 commented 1 year ago

As you have answered in other issues, the chapter 2 NOTEBOOK is completed successfully. image