0

我想在 OS-X 上使用端口安装 scikit-learn。知道我在这里缺少什么。

端口版本

Version: 2.1.3

操作系统-X

10.8.2 Build 12C60 

Xcode

Version 3.2.5 (1760)

Python

Python 2.7.2 (default, Jun 20 2012, 16:23:33) 
[GCC 4.2.1 Compatible Apple Clang 4.0 (tags/Apple/clang-418.0.60)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> 

安装 scikit-learn 的命令

sudo port install py27-scikit-learn
--->  Computing dependencies for py27-scikit-learn
--->  Cleaning py27-scikit-learn
--->  Scanning binaries for linking errors: 100.0%
--->  No broken files found.

但是,看起来它没有正确安装或配置。我在这里想念什么?

>>> import sklearn
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: No module named sklearn
>>> from sklearn import cluster, covariance, manifold
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: No module named sklearn
>>> 
4

1 回答 1

0

我搬到了 Homebrew,之后的一切都很容易。

于 2013-04-28T05:42:59.703 回答