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

Building wheels for collected packages: transformers install a wrong version of transformers (4.18.0) which is not compatible with sentence-transformers #443

Closed
PedemonteGiacomo opened this issue Jun 8, 2024 · 1 comment

Comments

@PedemonteGiacomo
Copy link

When performing the command:

pip install OFA/transformers/

I get this error when building the wheel:

Building wheels for collected packages: transformers
  Building wheel for transformers (pyproject.toml) ... done
  Created wheel for transformers: filename=transformers-4.18.0.dev0-py3-none-any.whl size=3916697 sha256=e0705580593e785569eb7b175f60a105e4d6f68600ed624e8b6fe51632740a00
  Stored in directory: C:\Users\giaco\AppData\Local\Temp\pip-ephem-wheel-cache-_9d05b9h\wheels\7f\61\a4\40605385b5c18f5e68b93995cf621323af03bb7ff123d0f5cf
Successfully built transformers
DEPRECATION: omegaconf 2.0.6 has a non-standard dependency specifier PyYAML>=5.1.*. pip 24.1 will enforce this behaviour change. A possible replacement is to upgrade to a newer version of omegaconf or contact the author to suggest that they release a version with a conforming dependency specifiers. Discussion can be found at https://github.com/pypa/pip/issues/12063
Installing collected packages: transformers
  Attempting uninstall: transformers
    Found existing installation: transformers 4.41.2
    Uninstalling transformers-4.41.2:
      Successfully uninstalled transformers-4.41.2
ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
sentence-transformers 2.7.0 requires transformers<5.0.0,>=4.34.0, but you have transformers 4.18.0.dev0 which is incompatible.

How can I solve this issue?

@PedemonteGiacomo
Copy link
Author

Solved using an older version of sentence-transformers (2.0.0)

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

1 participant