据说要先安装numpy和scipy,方法如下:
- 安装 numpy
1
|
sudo pip install numpy
|
- 安装 scipy
需要先安装 matplotlib ipython ipython-notebook pandas sympy
1
2 3 |
sudo apt-get install python-matplotlib ipython ipython-notebook
sudo apt-get install python-pandas python-sympy python-nose sudo pip install scipy |
2. 安装 scikit-learn
最后安装 scikit-learn
1
|
sudo pip install -U scikit-learn
|
我用的 anaconda 环境,安装命令如下:
1
|
pip3 install -U scikit-learn
|
3. 检查结果
1
|
pip3 list
|