Ich bin neu in Python und ich versuche, numpy + mkl und scipy (in der gleichen Reihenfolge) zu installieren, aber ich bekomme Fehler, wenn ich die folgenden Schritte ausführen :Python 3.5 (32-Bit): ImportError: Name kann nicht importiert werden NUMPTY_MKL
import pandas as pd
import numpy as np
from sklearn.preprocessing import LabelEncoder
Ich verwende Python 3.5 (32-Bit) auf einem Windows 7 64-Bit-Betriebssystem.
Es gibt eine ähnliche Frage bereits für das genaue Problem beantwortet hier: ImportError: cannot import name NUMPY_MKL
Geht man durch die Antwort, neu installiert ich meine numpy + mkl Pkg numpy‑1.11.2+mkl‑cp35‑cp35m‑win32.whl
aus dem genannten Link (http://www.lfd.uci.edu/~gohlke/pythonlibs/#numpy) und dann scipy-0.18.1-cp35-cp35m-win32.whl
als auch neu installiert, aber das löst nicht das Problem, und ich immer noch die gleichen Fehler:
>>> exec(open("C:\\PythonFiles\\testpy1.py").read())
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "<string>", line 3, in <module>
File "C:\Users\msoudagar\AppData\Local\Programs\Python\Python3532\lib\site-packages\sklearn\__init__.py", line 57, in <module>
from .base import clone
File "C:\Users\msoudagar\AppData\Local\Programs\Python\Python35-32\lib\site-packages\sklearn\base.py", line 10, in <module>
from scipy import sparse
File "C:\Users\msoudagar\AppData\Local\Programs\Python\Python3532\lib\site-packages\scipy\__init__.py", line 61, in <module>
from numpy._distributor_init import NUMPY_MKL # requires numpy+mkl
ImportError: cannot import name 'NUMPY_MKL'
Alle Eingaben wären wirklich hilfreich!
In der Fehlermeldung gibt es einen Pfad mit 'Python3532' und zum anderen mit' Python35-32'. Das scheint fischig zu sein. Da Sie neu installieren, warum nicht 64-Bit-Python verwenden? – user7138814