pip: pulling updates from remote git repository

You need to install the version from github, or locally.

The way I usually do is that I git clone the repository locally and I run python setup.py install or python setup.py develop on it so I'm sure about the version being used.

Re-issuing the command you've done the first time with the upgrade flag would do the trick otherwise.:

pip install --upgrade git+git://github.com/scikit-learn/scikit-learn@main

What worked for me was to use --force-reinstall:

pip install --force-reinstall --no-deps git+git://github.com/scikit-learn/scikit-learn@main

--no-deps to avoid reinstalling all the dependencies


pip searches for the library in the Python package index. Your version is newer than the newest one in there, so pip won't update it.

You'll have to reinstall from Git:

$ pip install git+git://github.com/scikit-learn/scikit-learn@main