1检查bug
pip install --pre --extra-index https://pypi.anaconda.org/scipy-wheels-nightly/simple scikit-learn
依赖库
Python (>= 3.6),
NumPy (>= 1.13.3),
SciPy (>= 0.19.1),
Joblib (>= 0.11),
threadpoolctl (>= 2.0.0).
2如果没有事先安装,当你building scikit-learn时候 这些库会自动安装
Note: For running on PyPy, PyPy3-v5.10+, Numpy 1.14.0+, and scipy 1.1.0+ are required. For PyPy, only installation instructions with pip apply.
git clone git://github.com/scikit-learn/scikit-learn.git # add --depth 1 if your connection is slow
cd scikit-learn
pip install cython
pip install --verbose --no-build-isolation --editable .
3检查装好的scikit-learn 结尾有.dev0: 安装成功
python -c "import sklearn; sklearn.show_versions()"
创建 Scikit-learn 还有库 :
Cython >= 0.28.5
A C/C++ compiler and a matching OpenMP runtime library. See the platform system specific instructions for more details.