Opened 10 years ago

Closed 10 years ago

#44802 closed defect (invalid)

pip install -U numpy scipy scikit-learn

Reported by: chairman0102@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.3.1
Keywords: Cc: kurthindenburg (Kurt Hindenburg)
Port:

Description (last modified by ryandesign (Ryan Carsten Schmidt))

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

Change History (4)

comment:1 Changed 10 years ago by ryandesign (Ryan Carsten Schmidt)

Description: modified (diff)
Priority: HighNormal
Type: requestdefect

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.

comment:2 Changed 10 years ago by kurthindenburg (Kurt Hindenburg)

Cc: khindenburg@… added

Cc Me!

comment:3 Changed 10 years ago by kurthindenburg (Kurt Hindenburg)

instead of pip, try using port

sudo port install py-scikit-learn

comment:4 Changed 10 years ago by mf2k (Frank Schima)

Resolution: invalid
Status: newclosed

It's not clear at all what needs to be done here.

Note: See TracTickets for help on using tickets.