Wenn ich sklearn importiere, tritt dieser Fehler auf. Ich habe an zahlreichen Stellen gesucht, um es zu reparieren, aber habe die Lösung nicht gefunden. Was ist die Ursache für dieses Problem und wie lösen Sie es?Python sklearn Paket (mögliche) Inkompatibilität
Traceback (most recent call last): File "<pyshell#19>", line 1, in <module> import sklearn File "C:\Users\Brian\AppData\Local\Programs\Python\Python35\lib\site-packages\sklearn\__init__.py", line 57, in <module> from .base import clone File "C:\Users\Brian\AppData\Local\Programs\Python\Python35\lib\site-packages\sklearn\base.py", line 12, in <module> from .utils.fixes import signature File "C:\Users\Brian\AppData\Local\Programs\Python\Python35\lib\site-packages\sklearn\utils\__init__.py", line 11, in <module> from .validation import (as_float_array, File "C:\Users\Brian\AppData\Local\Programs\Python\Python35\lib\site-packages\sklearn\utils\validation.py", line 18, in <module> from ..utils.fixes import signature File "C:\Users\Brian\AppData\Local\Programs\Python\Python35\lib\site-packages\sklearn\utils\fixes.py", line 406, in <module> if np_version < (1, 12, 0): TypeError: unorderable types: str() < int()
Dies ist eine Liste der Pakete ich in meinem Computer (OS: Windows 10):
cffi (1.9.1)
colorama (0.3.7)
Kryptographie (1.6)
cycler (0.10.0)
decorator (4.0.10)
Einstiegspunkte (0.2.2)
IDNA (2.1)
Flexion (0.3.1)
ipykernel (4.5.1)
ipython (5.1.0)
ipython-genutils (0.1.0)
ipywidgets (5.2.2)
Jinja2 (2.8)
jsonschema (2.5.1)
jupyter (1.0.0)
jupyter-Client (4.4.0)
jupyter-Konsole (5.0.0)
jupyter-Kern (4.2.0)
MarkupSafe (0,23)
Matplotlib (2.0.0b4)
mistune (0.7.3)
mehr-itertools (2.3)
mpmath (0,19)
nbconvert (4.2.0)
nbformat (4.1.0)
NDG-httpsclient (0.4.2)
Nase (1.3.7)
Notebook (4.2.3)
numpy (1.12.0b1 + mkl)
opencv-python (3.1.0)
Panda (0.3.1)
Pandas (0.19.1)
pi ckleshare (0.7.4)
pip (9.0.1)
Prompt-Toolkit (1.0.9)
pyasn1 (0.1.9)
pycparser (2,17)
Pygments (2.1.3)
pyOpenSSL (16.2.0)
pyparsing (2.1.10)
Python-dateutil (2.6.0)
pytz (2016,7)
pyzmq (16.0.2)
qtconsole (4.2.1)
Quandl (3,0. 1)
Anfragen (2.12.1)
Scikit-Learn (0.18.1)
scipy (0.18.1)
Setuptools (20.10.1)
simplegeneric (0.8.1)
sechs (1.10.0)
sklearn (0.0)
sklearn-contrib-blitz (0.4.0)
sympy (1,0)
Tornado (4.4.2) traitlets (4.3.1)
wcwidth (0.1.7)
widgetsnbextension (1.2.6)
win-Unicode-Konsole (0.5)
Siehe [Fehlerbericht] (https://github.com/scikit-learn/scikit-learn/issues/7898). – BrenBarn
Danke @BrenBarn – b5er