scikit-learn-contrib / py-earth

A Python implementation of Jerome Friedman's Multivariate Adaptive Regression Splines
http://contrib.scikit-learn.org/py-earth/
BSD 3-Clause "New" or "Revised" License
455 stars 121 forks source link

py-earth build error. #208

Closed santoshgawande closed 3 years ago

santoshgawande commented 3 years ago

I am trying to install using pip3 install sklearn-contrib-py-earth package. So it is not installed properly. It caused error to build. I am using python3.6.9 version and it install my local system Screenshot from 2020-12-12 14-08-01

Screenshot from 2020-12-12 14-05-15

kevin-dietz commented 3 years ago

@santoshgawande try cloning the py-earth repo and compiling from that:

git clone git://github.com/jcrudy/py-earth.git
cd py-earth
python setup.py build_ext --inplace --cythonize

Alternatively you can try building from branch 191:

git clone -b issue191 git://github.com/jcrudy/py-earth.git
cd py-earth
python setup.py install --cythonize
maruti-iitm commented 3 years ago

For me the alternate build from branch 191 solved the problem. Thanks a lot!

ash07uph commented 3 years ago

The build from branch 191 is giving me the following error of Microsoft Visual C++ 14.0 image

kevin-dietz commented 3 years ago

@ash07uph Sounds like you need to upgrade C++ to 14.0...

santoshgawande commented 3 years ago

@kevin-dietz Thank you for this.Using this solved my issue.

git clone git://github.com/jcrudy/py-earth.git cd py-earth python setup.py build_ext --inplace --cythonize