1

The master branch of SHAP fixes a clash with XGBoost, which is not fixed in the latest PyPI version: 0.35.0. Both SHAP and XGBoost are included in the list for install_requires in setup. I have tried the following (and many variants):

'shap @ git+ssh://git@github.com/slundberg/shap/fc30c661339e89e0132f5f89e5385e3681090e1f#egg=shap',

but they all result in Best match shap 0.35.0. Hence, the setup uses Processing shap-0.35.0.tar.gz, and the egg has the same clash between SHAP and XGBoost.

Without setup I have tested pip install git+https://github.com/slundberg/shap.git#egg=shap, and it retrieves the branch without the clash. Trying to use 'git+ssh://github.com/slundberg/shap.git#egg=shap' results in 'install_requires' must be a string or list of strings containing valid project/version requirement specifiers

Is there a suitable fix with setup that does not require waiting for a new SHAP release on PyPI?

sunspots
  • 1,047
  • 13
  • 29
  • @phd that does not solve the question... I have already upgraded setuptools. – sunspots Jul 18 '20 at 11:53
  • "*'install_requires' must be a string or list of strings containing valid project/version requirement specifiers*" means your `pip` and `setuptools` are too old and nothing else. – phd Jul 18 '20 at 12:48
  • @phd I'm using version: 20.1.1 of pip and 49.2.0 of setuptools. You missed the point of the question. – sunspots Jul 18 '20 at 12:53

0 Answers0