musco-ai / musco-pytorch

MUSCO: MUlti-Stage COmpression of neural networks
BSD 3-Clause "New" or "Revised" License
71 stars 16 forks source link

Instalation problem #9

Closed ABaaaC closed 4 years ago

ABaaaC commented 4 years ago

Recently, Pip changed its internal implementation. So in the last pip versions, I met error with setup.py

it can be debugged by replacing

return [str(item.req) for item in requirements]

by

try:
    return [str(item.req) for item in requirements]
except:
    return [str(item.requirement) for item in requirements]

for compatible with both the versions.

source: https://stackoverflow.com/questions/62114945/attributeerror-parsedrequirement-object-has-no-attribute-req

juliagusak commented 4 years ago

@ABaaaC, thank you for pointing out this problem! I've fixed it.

Best regards, Julia