Failing to install fairseq packages

1,510 views
Skip to first unread message

ARGHA CHANDRA DHAR

unread,
Nov 28, 2020, 7:44:29 AM11/28/20
to fairseq Users

Hi There,

I am a new user in fairseq . I want to implement this model given in this link https://github.com/LiyuanLucasLiu/Transformer-Clinic.

But when i ran this command:
pip install --editable .

it gave me following error:
ERROR: Package 'dataclasses' requires a different Python: 3.8.5 not in '>=3.6, <3.7'

How to solve this problem??

However,Thanks Beforehand :D

Myle Ott

unread,
Nov 28, 2020, 8:59:28 AM11/28/20
to ARGHA CHANDRA DHAR, fairseq Users
That code is based on a slightly older version of fairseq, so I don't know if it will work out-of-the-box on the latest master version.

Regarding the error you're seeing, the `dataclasses` package is only required for Python 3.6, so it shouldn't be installed... please try removing this line from setup.py as a workaround: https://github.com/pytorch/fairseq/blob/master/setup.py#L183

-Myle

--
You received this message because you are subscribed to the Google Groups "fairseq Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fairseq-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/fairseq-users/805f2e3d-633b-4c52-a623-b5887b52eb38n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages