[scikit-learn] Install sklearn into a specific folder to make some changes

Dale T Smith Dale.T.Smith at macys.com
Tue Aug 2 08:34:34 EDT 2016


I agree with everyone else – conda environments are specially designed for this situation.

I’ve not used virtualenv  myself (http://docs.python-guide.org/en/latest/dev/virtualenvs/). I’m an Anaconda user.


__________________________________________________________________________________________
Dale Smith | Macy's Systems and Technology | IFS eCommerce | Data Science and Capacity Planning
| 5985 State Bridge Road, Johns Creek, GA 30097 | dale.t.smith at macys.com

From: scikit-learn [mailto:scikit-learn-bounces+dale.t.smith=macys.com at python.org] On Behalf Of Michael Eickenberg
Sent: Monday, August 1, 2016 4:17 PM
To: Scikit-learn user and developer mailing list
Subject: Re: [scikit-learn] Install sklearn into a specific folder to make some changes

⚠ EXT MSG:


On Monday, August 1, 2016, Andreas Mueller <t3kcit at gmail.com<mailto:t3kcit at gmail.com>> wrote:
Hi.
The best is probably to use a virtual environment or conda environment specific for this changed version of scikit-learn.
In that environment you could just run an "install" and it would not mess with your other environments.

+1!

If you don't want to go that way, you can also do ``python setup.py build_ext -i`` to build inplace and then add this
path to your python path (PYTONPATH environment variable or sys.path.insert in the script or many other ways).

Best,
Andy

On 08/01/2016 03:55 PM, luizfgoncalves at dcc.ufmg.br<mailto:luizfgoncalves at dcc.ufmg.br> wrote:
I'm looking for the best way to install sklearn into a specific folder so
I can make changes for my work, without worrying about bugging my main
sklearn installation (as I use the default version for some experiments
too).

I tried to clone the git repository and use "python setup.py install", but
I'm afraid it will change my user installation too.

Right now, what I want is to edit a file called splitter.pyx (on tree
folder), compile/install sklearn so it will work with my changes, and test
it.

What is the best way to do it without causing problems with my main
sklearn installation?

Thanks a lot for your attention

_______________________________________________
scikit-learn mailing list
scikit-learn at python.org<mailto:scikit-learn at python.org>
https://mail.python.org/mailman/listinfo/scikit-learn

_______________________________________________
scikit-learn mailing list
scikit-learn at python.org<mailto:scikit-learn at python.org>
https://mail.python.org/mailman/listinfo/scikit-learn
* This is an EXTERNAL EMAIL. Stop and think before clicking a link or opening attachments.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/scikit-learn/attachments/20160802/8a93e740/attachment-0001.html>


More information about the scikit-learn mailing list