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

Add packaging to requirements #394

Merged
merged 2 commits into from
May 25, 2022
Merged

Add packaging to requirements #394

merged 2 commits into from
May 25, 2022

Conversation

muellerzr
Copy link
Collaborator

Add packaging to the project requirements

What does this add?

This PR adds packaging>=20.0 to the project requirements, which is the same pin as in transformers

Who is it for?

Closes #393

Why is it needed?

Current installations from source fail due to the packaging package needing to be installed in both accelerator.py and versions.py in huggingface/accelerate

@muellerzr muellerzr added the bug Something isn't working label May 25, 2022
setup.py Outdated
@@ -55,7 +55,7 @@
]
},
python_requires=">=3.6.0",
install_requires=["torch>=1.4.0", "pyyaml", "numpy>=1.17"],
install_requires=["numpy>=1.17", "pyyaml", "torch>=1.4.0", "packaging>=20.0"],
Copy link
Collaborator

Choose a reason for hiding this comment

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

If we're alphabetically sorting, let's really do it ;-)

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Fixed, heh

@HuggingFaceDocBuilderDev
Copy link

HuggingFaceDocBuilderDev commented May 25, 2022

The documentation is not available anymore as the PR was closed or merged.

@muellerzr muellerzr merged commit f12ef14 into main May 25, 2022
@muellerzr muellerzr deleted the requirements branch May 25, 2022 15:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ModuleNotFoundError: No module named 'packaging'
3 participants