musco-pytorch icon indicating copy to clipboard operation
musco-pytorch copied to clipboard

Installation fails due to conflicting numpy version

Open NeolithEra opened this issue 5 years ago • 1 comments

Hi, users are unable to run musco-pytorch due to dependency conflict with numpy package. As shown in the following full dependency graph of musco-pytorch, musco-pytorch requires numpy *,while scikit-tensor-py3 requires numpy ==1.16.*.

According to pip’s “first found wins” installation strategy, numpy 1.17.4 is the actually installed version. However, numpy 1.17.4 does not satisfy ==1.16.*.

Dependency tree-----------

musco-pytorch - 1.0.3
| +- absl-py(install version:0.8.1 version range:*)
| +- flopco-pytorch(install version:0.1.3 version range:*)
| +- numpy(install version:1.17.4 version range:*)
| +- scikit-tensor-py3(install version:0.4.1 version range:*)
| | +- numpy(install version:1.16.5 version range:==1.16.*)
| | +- scipy(install version:1.3.3 version range:==1.3.)
| +- scipy(install version:1.3.3 version range:*)
| +- tensorly-musco(install version:0.4.5 version range:*)

Thanks for your help. Best, Neolith

NeolithEra avatar Dec 11 '19 11:12 NeolithEra

Suggested Solution

  1. Fix your direct dependency to be numpy <1.17.0. I have checked this revision will not affect your downstream projects now.
  2. Ask your upstream project scikit-tensor-py3 to loose the version range of numpy.
  3. Remove your direct dependency numpy, and use numpy transitively introduced by scikit-tensor-py3.

@juliagusak Which solution do you prefer, 1, 2 or 3? Please let me know your choice. I can submit a PR to solve this issue.

NeolithEra avatar Dec 11 '19 11:12 NeolithEra