Opened 10 years ago

Last modified 10 years ago

#44802 closed defect

pip install -U numpy scipy scikit-learn — at Version 1

Reported by: chairman0102@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.3.1
Keywords: Cc:
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 (1)

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.

Note: See TracTickets for help on using tickets.