Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

missing install instructions for external libraries #1

Open
raivatshah opened this issue Sep 25, 2023 · 6 comments
Open

missing install instructions for external libraries #1

raivatshah opened this issue Sep 25, 2023 · 6 comments

Comments

@raivatshah
Copy link

The notebook doesn't work out of the box because it is missing the install instruction for libraries ( tiktoken, openai, pydantic , fastcore, transformers, wikipediaapi and torch).

I wonder if we can add a requirements.txt or something to accompany the notebook. A hacker will probably figure out a way around this, but just thinking out loud

@arun477
Copy link

arun477 commented Sep 25, 2023

Adding the '!pip install' command to the top of the cell would be sufficient if there are any missing libraries in your current python notebook environment.

!pip install tiktoken openai pydantic fastcore transformers wikipediaapi torch

@raivatshah
Copy link
Author

Thanks @arun477! But I wonder if it should be part of the repo/notebook in some way to make it work out of the box.

@cgreening
Copy link

cgreening commented Sep 26, 2023

#2

@raivatshah
Copy link
Author

Thanks @cgreening

@usernotabuser
Copy link

usernotabuser commented Jan 5, 2024

Jeremy, didn't attach requiremnets.txt, too long word. Make a req.txt in the notebook folder, paste the names of modules in new line each. From notebook use: !pip install -r req.txt from console pip install -r req.txt This txt file name is only convention. You can name this *.txt, but also use the same name in !pip install -r *.txt line. BTW. the proper name of the wikipedia API's module is: wikipedia ref: https://pypi.org/project/wikipedia/

@adelton
Copy link

adelton commented Mar 19, 2024

For the

from sentence_transformers import SentenceTransformer

call, sentence_transformers is also needed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants