-
Notifications
You must be signed in to change notification settings - Fork 123
Installing py earth on Windows with Anaconda for Python 2.7
Update 2018-06-11: It is no longer necessary to install py-earth from source on Windows. Instead, you can use:
pip install sklearn-contrib-py-earth
or, if you use conda:
conda config --add channels conda-forge
conda install sklearn-contrib-py-earth
The following instructions are still relevant for those who do need to install from source on Windows for some reason.
I experienced problems when I tried to install py-earth with Anaconda for Python 3.5. Basically I needed the Microsoft Visual C++ compiler in the same version as python was compiled, and I didn't want to install Visual Studio. With Python 2.7 it is easier, since Microsoft provides a nice 80 MB installer.
- Git
- Microsoft Visual C++ Compiler for Python 2.7 - https://www.microsoft.com/en-us/download/details.aspx?id=44266
- Anaconda2 for Python 2.7 (which comes with scikit-learn)
Just install all requirements above and then open a command prompt as Administrator. Follow the official installing instructions, except for the 'sudo', obviously:
git clone git://github.com/jcrudy/py-earth.git
cd py-earth
python setup.py install
You should see lots of logging messages and in the end:
Finished processing dependencies for py-earth==0.1.0.