2017-08-02 4 views
0

Ich versuche eine Wellennetzimplementierung auszuführen (die Tensorflow + Librosa verwendet). Ich laufe jedoch weiter in den Fehler "kann den Namen 'NUMPY_MKL' nicht importieren".Python kann den Namen 'NUMPY_MKL' nicht importieren

Ich habe bereits Tensorflow, Numpy + Mk1, Scipy und Librosa installiert. Tensorflow selbst wird geladen, aber Fehler wird ausgelöst, wenn ich die Wavenet-Implementierung, die Librosa verwendet, ausführen.

Meine spec/Details: Python 3.5.2 Numpy + MK1 (numpy-1.13.1 + MKL-CP35-cp35m-win_amd64.whl) Scipy (scipy-0.19.1-CP35-cp35m-win_amd64. wl) Windows 10 x64 Nvidia CUDA v8.0 (cudnn 5.1)

Ich hoffe, Sie können helfen. Vollständiger Fehlerprotokoll unter:

Traceback (most recent call last): 
    File "train.py", line 20, in <module> 
    from wavenet import WaveNetModel, AudioReader, optimizer_factory 
    File "D:\musicAI\wavenet\__init__.py", line 2, in <module> 
    from .audio_reader import AudioReader 
    File "D:\musicAI\wavenet\audio_reader.py", line 7, in <module> 
    import librosa 
    File "C:\Python35\lib\site-packages\librosa\__init__.py", line 12, in <module> 
    from . import core 
    File "C:\Python35\lib\site-packages\librosa\core\__init__.py", line 108, in <module> 
    from .time_frequency import * # pylint: disable=wildcard-import 
    File "C:\Python35\lib\site-packages\librosa\core\time_frequency.py", line 10, in <module> 
    from ..util.exceptions import ParameterError 
    File "C:\Python35\lib\site-packages\librosa\util\__init__.py", line 67, in <module> 
    from .utils import * # pylint: disable=wildcard-import 
    File "C:\Python35\lib\site-packages\librosa\util\utils.py", line 5, in <module> 
    import scipy.ndimage 
    File "C:\Python35\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' 

Antwort

0

Verwaltet fixiert dies durch eine vollständige Deinstallation von numpy + MK1 tun, dann ist es wieder zu installieren.

ich vorher tun war:

diese
pip install --ignore-install path\numpy.whl 

tun, anstatt es zum Laufen zu bringen:

pip uninstall numpy # this removes the existing copy 
pip install path\numpy.whl # this install the numpy+mk1 from local .whl file 
Verwandte Themen