IBM / federated-learning-lib

A library for federated learning (a distributed machine learning process) in an enterprise environment.
Other
493 stars 134 forks source link

numpy: these package versions have conflicting dependencies. #112

Closed Yuchen-ck closed 2 years ago

Yuchen-ck commented 2 years ago

I ran the instruction: pip install But there are the errors, how to fix it? ERROR: Cannot install federated-learning-lib and federated-learning-lib==1.0.7 because these package versions have conflicting dependencies.

The conflict is caused by: federated-learning-lib 1.0.7 depends on numpy==1.17.4 aif360 0.3.0 depends on numpy>=1.16 gensim 3.8.3 depends on numpy>=1.11.3 gym 0.19.0 depends on numpy>=1.18.0

To fix this you could try to:

  1. loosen the range of package versions you've specified
  2. remove package versions to allow pip attempt to solve the dependency conflict
Yuchen-ck commented 2 years ago

image

Yi-Zoey commented 2 years ago

Hi @Yuchen-ck , which python version you are using? You can also refer to this issue #93.

Yuchen-ck commented 2 years ago

python=3.6 AND tensorflow=1.15, should i upgrade TensorFlow to 2.1 version?

Yi-Zoey commented 2 years ago

I don't think this should be an issue, in our new version of WHL, we've removed the numpy version requirement.

Yuchen-ck commented 2 years ago

Thanks!