Skip to content
This repository was archived by the owner on Dec 6, 2023. It is now read-only.

Installing py earth on Windows with Anaconda for Python 2.7

Jason Rudy edited this page Jun 11, 2018 · 2 revisions

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.

Requirements

Instructions

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.
Clone this wiki locally