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

Possible redundant dataclasses dependency #54

Open
AndersonZhangyq opened this issue Nov 9, 2020 · 1 comment
Open

Possible redundant dataclasses dependency #54

AndersonZhangyq opened this issue Nov 9, 2020 · 1 comment
Labels
question Further information is requested

Comments

@AndersonZhangyq
Copy link

When installing using pip with python 3.7, the following error occurs:

ERROR: Package 'dataclasses' requires a different Python: 3.7.9 not in '>=3.6, <3.7'

Then I try to run the source code directly, and it works well with python 3.7 and python 3.6.9.
It seems that it's ok to remove the dataclasses dependency to better support python 3.7+

@sovrasov
Copy link
Owner

sovrasov commented Nov 9, 2020

The dataclasses dependency comes form pytorch 1.7 and I can't control it. ptflops doesn't implicitly requires dataclasses, but it leaks via pytorch during installation.
The only thing I can propose here is to install ptflops ignoring all requirements (namely the torch package without a specified version):

pip install ptflops --no-deps

And then install a version of the torch package that would work on your config.

@sovrasov sovrasov added the question Further information is requested label Nov 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants