Update/ install Python scikit learn latest develop

2020-07-25 03:58发布

I am trying to replace/install my Python scikit-learn 0.17.0 with 0.18.dev0 latest development version in Windows, so that I can try out sklearn.neural_network.MLPClassifier. After reading and trying the advanced user manual here (http://scikit-learn.org/stable/developers/advanced_installation.html#install-bleeding-edge), I am kinda stuck.

 pip install -U scikit-learn

 => Still getting 0.17.0 but not 0.18.dev0

Could any guru provide step by step guides to install developmental Python 2.70 scikit-learn in windows? Thanks!

3条回答
叛逆
2楼-- · 2020-07-25 04:25

The only way to get the development version is to clone it through git, as follows:

pip install git+https://github.com/scikit-learn/scikit-learn.git

For Windows, I highly recommend installing Anaconda (https://www.continuum.io/downloads) because it installs all the scientific computing packages that you need for Windows.

查看更多
甜甜的少女心
3楼-- · 2020-07-25 04:31

I have same problem with you. After trying several solutions, I finally get sklearn 0.18 worked by simply type:

pip install git+https://github.com/scikit-learn/scikit-learn.git#egg=scikit-learn
查看更多
该账号已被封号
4楼-- · 2020-07-25 04:37

conda install scikit-learn

seems to do the job of updating to the latest version.

you can find the package you are looking for there:

from sklearn.neural_network import MLPClassifier

This is valid if you are using Anaconda, ofc.

查看更多
登录 后发表回答