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

Cannot install Transformers version >2.3.0 with pip on MacOS #1

Open
Yuanyuan-T opened this issue Mar 9, 2020 · 1 comment
Open
Assignees
Labels
invalid This doesn't seem right
Projects

Comments

@Yuanyuan-T
Copy link
Collaborator

error: Can not find Rust compiler

see huggingface/transformers#2980

@Yuanyuan-T
Copy link
Collaborator Author

Solution: huggingface/transformers#2831

Managed to solve it and install Transformers 2.5.1 by manually install the last version of tokenizers (0.6.0) instead of 0.5.2 that is required in the transformer package.

pip install tokenizers

Git clone latest version of transformers:

git clone https://github.com/huggingface/transformers

Before running the installation edit transformers/setup.py and change requirement of tokenizers to 0.6.0

Line 93: install_requires=[
"numpy",
"tokenizers == 0.6.0",

Then run as usual:

cd transformers
pip install .

I assume that you could also skip the first step and just collect the package as you run the install.
I'm quite new to this, so just wanted to share my take.

@Yuanyuan-T Yuanyuan-T reopened this Mar 21, 2020
@Yuanyuan-T Yuanyuan-T self-assigned this Mar 21, 2020
@Yuanyuan-T Yuanyuan-T added bug Something isn't working invalid This doesn't seem right and removed bug Something isn't working labels Mar 21, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
invalid This doesn't seem right
Projects
Main
Awaiting triage
Development

No branches or pull requests

1 participant