[MacPorts] #44802: pip install -U numpy scipy scikit-learn

MacPorts noreply at macports.org
Thu Aug 28 03:50:04 PDT 2014


#44802: pip install -U numpy scipy scikit-learn
-----------------------------+--------------------------------
  Reporter:  chairman0102@…  |      Owner:  macports-tickets@…
      Type:  defect          |     Status:  new
  Priority:  Normal          |  Milestone:
 Component:  ports           |    Version:  2.3.1
Resolution:                  |   Keywords:
      Port:                  |
-----------------------------+--------------------------------
Changes (by ryandesign@…):

 * priority:  High => Normal
 * type:  request => defect


Old description:

> pip install -U numpy scipy scikit-learn
>
> >>> from sklearn import svm
> Traceback (most recent call last):
>   File "<stdin>", line 1, in <module>
>   File "/Library/Python/2.7/site-packages/sklearn/svm/__init__.py", line
> 13, in <module>
>     from .classes import SVC, NuSVC, SVR, NuSVR, OneClassSVM, LinearSVC
>   File "/Library/Python/2.7/site-packages/sklearn/svm/classes.py", line
> 1, in <module>
>     from .base import BaseLibLinear, BaseSVC, BaseLibSVM
>   File "/Library/Python/2.7/site-packages/sklearn/svm/base.py", line 8,
> in <module>
>     from . import libsvm, liblinear
>   File "__init__.pxd", line 155, in init sklearn.svm.libsvm
> (sklearn/svm/libsvm.c:9130)
> ValueError: numpy.dtype has the wrong size, try recompiling
>

> i can't use scikit-learn  help me  thanks

New description:

 {{{
 pip install -U numpy scipy scikit-learn

 >>> from sklearn import svm
 Traceback (most recent call last):
   File "<stdin>", line 1, in <module>
   File "/Library/Python/2.7/site-packages/sklearn/svm/__init__.py", line
 13, in <module>
     from .classes import SVC, NuSVC, SVR, NuSVR, OneClassSVM, LinearSVC
   File "/Library/Python/2.7/site-packages/sklearn/svm/classes.py", line 1,
 in <module>
     from .base import BaseLibLinear, BaseSVC, BaseLibSVM
   File "/Library/Python/2.7/site-packages/sklearn/svm/base.py", line 8, in
 <module>
     from . import libsvm, liblinear
   File "__init__.pxd", line 155, in init sklearn.svm.libsvm
 (sklearn/svm/libsvm.c:9130)
 ValueError: numpy.dtype has the wrong size, try recompiling
 }}}

 i can't use scikit-learn  help me  thanks

--

Comment:

 I'm not certain what MacPorts port this bug report is about.

 I do see "/Library/Python" in your output. That's not part of any
 MacPorts-provided version of Python.

-- 
Ticket URL: <https://trac.macports.org/ticket/44802#comment:1>
MacPorts <http://www.macports.org/>
Ports system for OS X


More information about the macports-tickets mailing list