You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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+
The text was updated successfully, but these errors were encountered:
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.
When installing using pip with python 3.7, the following error occurs:
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+
The text was updated successfully, but these errors were encountered: