Forums

Help with Installing transformers on PythonAnywhere

Dear All,

I’m encountering a version compatibility issue when trying to install the transformers library on PythonAnywhere.

The latest version (transformers==4.55) seems to cause incompatibility with system pre-installed PyTorch (1.11+cpu).

When I tried installing an older version (transformers==4.6.1), I ran into a Rust compiler error, as it could not find the prebuilt wheels.

Has anyone faced a similar issue, or could suggest a workaround?

My goal is to use sentence-transformers to generate embeddings for user queries in the search bar of my web app. My plan is "Hacker".

Thank you in advance for your help!

Best regards,

I see you use an older system image (haggis), you could try to upgrade to the most recent one, however I see it comes with support for Python 3.9-3.12 only for version 2.3.1+cpu, see this page. You could also try installing torch directly in your account.