简体   繁体   中英

Pip install forked github-repo

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.

try again using just (-e flag lets you git pull updates by installing it as a git repo)

pip install -e git+git://github.com/wdonahoe/scikit-learn-fork.git@master#egg=scikit-learn

more on eggs: http://mrtopf.de/blog/en/a-small-introduction-to-python-eggs/

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM