scikit-learn-contrib / lightning

Large-scale linear classification, regression and ranking in Python
https://contrib.scikit-learn.org/lightning/
1.73k stars 214 forks source link

install help #197

Closed 7starsea closed 2 years ago

7starsea commented 2 years ago

I tried

pip install sklearn-contrib-lightning

and when I run from lightning.regression import SDCARegressor, I got the ValueError ValueError: numpy.ndarray size changed, may indicate binary incompatibility. Expected 96 from C header, got 80 from PyObject.

and then I tried

git clone https://github.com/scikit-learn-contrib/lightning.git
cd lightning
python setup.py install

and when I run from lightning.regression import SDCARegressor, I got the ModuleNotFoundError ModuleNotFoundError: No module named 'lightning.impl.randomkit.random_fast'.

I accidently run in the repository director... and this is why I got the ModuleNotFoundError

My python env is

python=3.8.12
numpy=1.19.3
scipy=1.7.3
cython=0.29.25
gcc=9.3.1

Aimin