ImportError:无法导入名称extend_notes_in_docstring

时间:2018-11-20 08:33:16

标签: python python-2.7 scikit-learn

我正在尝试导入from sklearn.metrics.pairwise import pairwise_distances 但显示以下内容:

ImportError: cannot import name extend_notes_in_docstring

from sklearn.metrics.pairwise import pairwise_distances
Traceback (most recent call last):

 File "<ipython-input-31-d305ad2c017e>", line 1, in <module>
    from sklearn.metrics.pairwise import pairwise_distances

  File "C:\Users\AppData\Local\Continuum\anaconda2\lib\site-packages\sklearn\metrics\__init__.py", line 7, in <module>
    from .ranking import auc

  File "C:\Users\AppData\Local\Continuum\anaconda2\lib\site-packages\sklearn\metrics\ranking.py", line 25, in <module>
    from scipy.stats import rankdata

  File "C:\Users\AppData\Local\Continuum\anaconda2\lib\site-packages\scipy\stats\__init__.py", line 345, in <module>
    from .stats import *

  File "C:\Users\AppData\Local\Continuum\anaconda2\lib\site-packages\scipy\stats\stats.py", line 171, in <module>
    from . import distributions

  File "C:\Users\AppData\Local\Continuum\anaconda2\lib\site-packages\scipy\stats\distributions.py", line 13, in <module>
    from . import _continuous_distns

  File "C:\UsersAppData\Local\Continuum\anaconda2\lib\site-packages\scipy\stats\_continuous_distns.py", line 11, in <module>
    from scipy.misc.doccer import (extend_notes_in_docstring,

ImportError: cannot import name extend_notes_in_docstring

在导入pairwise.distances之前还有其他依赖库要导入吗?

0 个答案:

没有答案