There are several ways of achieving this. One is to build scikit-learn in place by going into the sklearn clone and typing <div><br></div><div>make in</div><div><br></div><div>or alternatively</div><div><br></div><div>python setup.py build_ext --inplace   # (i think)</div><div><br></div><div>Then you can use the environment variable PYTHONPATH, set to the github clone, and python will give precedence to the clone whenever the variable is set.</div><div><br></div><div>As an alternative, you can install your clone using</div><div><br></div><div>python setup.py develop</div><div><br></div><div>and then work on a branch. Checkout master and rebuild whenever you need it. This would entail working on the same clone for master and development (so your builtin default sklearn would be overrridden)</div><div><br></div><div>hth,</div><div>Michael<span></span><br><br>On Monday, August 1, 2016,  <<a href="mailto:luizfgoncalves@dcc.ufmg.br">luizfgoncalves@dcc.ufmg.br</a>> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I'm looking for the best way to install sklearn into a specific folder so<br>
I can make changes for my work, without worrying about bugging my main<br>
sklearn installation (as I use the default version for some experiments<br>
too).<br>
<br>
I tried to clone the git repository and use "python setup.py install", but<br>
I'm afraid it will change my user installation too.<br>
<br>
Right now, what I want is to edit a file called splitter.pyx (on tree<br>
folder), compile/install sklearn so it will work with my changes, and test<br>
it.<br>
<br>
What is the best way to do it without causing problems with my main<br>
sklearn installation?<br>
<br>
Thanks a lot for your attention<br>
<br>
_______________________________________________<br>
scikit-learn mailing list<br>
<a href="javascript:;" onclick="_e(event, 'cvml', 'scikit-learn@python.org')">scikit-learn@python.org</a><br>
<a href="https://mail.python.org/mailman/listinfo/scikit-learn" target="_blank">https://mail.python.org/mailman/listinfo/scikit-learn</a><br>
</blockquote></div>