I installed scikit-learn from GitHub a couple of weeks ago:
pip install git+git://github.com/scikit-learn/scikit-learn@master
I went to GitHub and there have been several changes to the master branch since then.
How can I update my local installation of scikit-learn
?
I tried pip install scikit-learn --upgrade
but I got:
Requirement already up-to-date Cleaning up ...
You can deploy Git locally, or use it via a hosted service, such as Github, Gitlab or Bitbucket. One of the advantages of using pip together with Git is to install the latest commits of unreleased Python packages as branches from Github.
Pip can be used to upgrade all packages on either Windows or Linux: Output a list of installed packages into a requirements file (requirements.
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
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With