I'm working on a project and need a little different functionality from the package sklearn. I've forked the repo and pushed my changes. I know that I can install from github via pip:
pip install git+git://github.com/wdonahoe/scikit-learn-fork.git@master
and then I can install the package with setup.py:
python setup.py install
However, I am confused about what to do after this step. Running setup.py creates some .egg-info folders and .egg-links files in .../dist-packages/, but I am unsure what to do with them. Ideally, I'd like to go into my project in .../projects/my_project and say something like
from sklearn-my-version import <stuff>
or switch it out with just
from sklearn import <stuff>
I am also a little confused because a lot of resources on this issue mention using easy_install, which I thought pip replaced.
pip install git+…orpython setup.py install(orpip install .), not both. - abarnertimportthe package the same way as any other package. Assuming it installed assklearn, you can just dofrom sklearn import <stuff>, which sounds like exactly what you want to do, so what's the problem? - abarnerteasy_installis that a lot of resources are years out of date. If you're reading old StackOverflow answers, blog posts, printed books, etc., they're unlikely to have been updated since they were initially written. - abarnert