在Ubuntu 12.04上安装scikit-learn的问题

时间:2014-08-23 04:33:36

标签: python ubuntu scikit-learn

我安装了scikit-learn via:

 sudo apt-get install build-essential python-dev python-setuptools \
                     python-numpy python-scipy \
                     libatlas-dev libatlas3gf-base

sudo apt-get install python-matplotlib

sudo apt-get install python-sklearn

使用nosetests -v sklearn进行测试时 我第一次遇到3个错误 例如ERROR: sklearn.datasets.tests.test_lfw.test_load_fake_lfw_people

然后我按照建议使用线程1808

中的Neurodebian

现在nosetests -v sklearn

立即失败

失败:OSError(没有这样的文件/ home / username / MachineLearn / sklearn)......错误

当我测试joblib和sklearn的版本时,我得到:

 Installed: 0.5.4-1
  Candidate: 0.8.2+git7-g0211f4c-1~nd12.04+1
  Version table:
     0.8.2+git7-g0211f4c-1~nd12.04+1 0
        500 http://neurodeb.pirsquared.org/ precise/main amd64 Packages
 *** 0.5.4-1 0
        500 http://archive.ubuntu.com/ubuntu/ precise/universe amd64 Packages
        100 /var/lib/dpkg/status

apt-cache policy python-sklearn
python-sklearn:
  Installed: 0.14.1-1~nd12.04+1
  Candidate: 0.14.1-1~nd12.04+1
  Version table:
 *** 0.14.1-1~nd12.04+1 0
        500 http://neurodeb.pirsquared.org/ precise/main amd64 Packages
        100 /var/lib/dpkg/status
     0.10.0-1build1 0
        500 http://archive.ubuntu.com/ubuntu/ precise/universe amd64 Packages

0 个答案:

没有答案