ImportError:无法导入名称“ _init_nd_shape_and_axes_sorted”

时间:2019-09-12 02:08:30

标签: python scipy time-series

使用命令tsfresh安装conda install -c conda-forge tsfresh后,出现以下错误。

如何解决?为什么会发生这种情况,这是安装错误吗?

 ImportError Traceback (most recent call last)
    <ipython-input-111-1f39f6e288be> in <module>()
    ----> 1 from tsfresh import select_features

    ~\Anaconda3\lib\site-packages\tsfresh\__init__.py in <module>()
         31 
         32 
    ---> 33 from tsfresh.convenience.relevant_extraction import extract_relevant_features
         34 from tsfresh.feature_extraction import extract_features
         35 from tsfresh.feature_selection import select_features

    ~\Anaconda3\lib\site-packages\tsfresh\convenience\relevant_extraction.py in <module>()
          5 from __future__ import absolute_import
          6 import pandas as pd
    ----> 7 from tsfresh.feature_extraction import extract_features
          8 from tsfresh import defaults
          9 from tsfresh.feature_selection import select_features

    ~\Anaconda3\lib\site-packages\tsfresh\feature_extraction\__init__.py in <module>()
          3 """
          4 
    ----> 5 from tsfresh.feature_extraction.extraction import extract_features
          6 from tsfresh.feature_extraction.settings import ComprehensiveFCParameters, MinimalFCParameters, \
          7     EfficientFCParameters

    ~\Anaconda3\lib\site-packages\tsfresh\feature_extraction\extraction.py in <module>()
         15 
         16 from tsfresh import defaults
    ---> 17 from tsfresh.feature_extraction import feature_calculators
         18 from tsfresh.feature_extraction.settings import ComprehensiveFCParameters
         19 from tsfresh.utilities import dataframe_functions, profiling

    ~\Anaconda3\lib\site-packages\tsfresh\feature_extraction\feature_calculators.py in <module>()
         23 import pandas as pd
         24 from numpy.linalg import LinAlgError
    ---> 25 from scipy.signal import cwt, find_peaks_cwt, ricker, welch
         26 from scipy.stats import linregress
         27 from statsmodels.tools.sm_exceptions import MissingDataError

    ~\Anaconda3\lib\site-packages\scipy\signal\__init__.py in <module>()
        301 from .ltisys import *
        302 from .lti_conversion import *
    --> 303 from .signaltools import *
        304 from ._savitzky_golay import savgol_coeffs, savgol_filter
        305 from .spectral import *

    ~\Anaconda3\lib\site-packages\scipy\signal\signaltools.py in <module>()
         14 from scipy._lib._version import NumpyVersion
         15 from scipy import fftpack, linalg
    ---> 16 from scipy.fftpack.helper import _init_nd_shape_and_axes_sorted
         17 from numpy import (allclose, angle, arange, argsort, array, asarray,
         18                    atleast_1d, atleast_2d, cast, dot, exp, expand_dims,

    ImportError: cannot import name '_init_nd_shape_and_axes_sorted'

0 个答案:

没有答案