Skip to content

Conversation

@stas00
Copy link
Contributor

@stas00 stas00 commented Jan 13, 2021

As a follow up to #9550, this PR adds a few handy one liners to quickly access the correct dependency versions from shell.

e.g if you want to install deps for a group of packages we control and with their correct versions, you just need to run:

pip install -U $(python -c 'import sys; from transformers.dependency_versions_table import deps; \
print(" ".join([deps[x] for x in sys.argv[1:]]))' numpy filelock protobuf requests tqdm regex \
sentencepiece sacremoses tokenizers packaging importlib_metadata)

that was one option for torchhub, but since it didn't have transformers installed it didn't work and a different solution was provided #9552

@sgugger, @LysandreJik

@stas00 stas00 changed the title note on how to get to deps from shell [setup.py] note on how to get to transformers exact dependencies from shell Jan 13, 2021
Copy link
Collaborator

@sgugger sgugger left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for documenting this!

Copy link
Member

@LysandreJik LysandreJik left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cool, thanks @stas00!

@LysandreJik LysandreJik merged commit c99751d into huggingface:master Jan 14, 2021
@stas00 stas00 deleted the deps-instruct branch January 14, 2021 17:18
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

Successfully merging this pull request may close these issues.

3 participants