macOS 源码安装 scikit-learn

2018-10-18 11:15:35 浏览数 (1)

官文指南: http://scikit-learn.org/stable/developers/advanced_installation.html

代码语言:javascript复制
$ wget -c https://github.com/scikit-learn/scikit-learn/archive/0.20.X.zip # 下载 scikit-learn 0.20.x 源码
$ unzip 0.20.X.zip # 解压到当前目录
$ cd scikit-learn-0.20.X/
$ python3 -m venv sklearn0.20.x # 创建 sklearn 的虚拟环境
$ source sklearn0.20.x/bin/activate # 激活虚拟环境
(sklearn0.20.x) $ pip install numpy scipy cython pytest matplotlib # 安装依赖
(sklearn0.20.x) $ pip install --editable . # 安装 sklearn
(sklearn0.20.x) $ pytest sklearn

0 人点赞