我想在OS-X上使用端口安装scikit-learn。知道我在这里缺少什么。
端口版
Version: 2.1.3
OS-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
>>>
答案 0 :(得分:0)
我搬到了Homebrew,之后的一切都很简单。