当前位置:   article > 正文

import seaborn显示错误ImportError: cannot import name NUMPY_MKL_导入seaborn时报错importerror: cannot import name 'int'

导入seaborn时报错importerror: cannot import name 'int' from 'numpy

seaborn 由whl文件安装
numpy由pip安装
import seaborn显示

In [2]: import seaborn
---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)
<ipython-input-2-6f477838ac7f> in <module>()
----> 1 import seaborn

c:\python27\lib\site-packages\seaborn\__init__.py in <module>()
      4
      5 # Import seaborn objects
----> 6 from .rcmod import *
      7 from .utils import *
      8 from .palettes import *

c:\python27\lib\site-packages\seaborn\rcmod.py in <module>()
      6 import matplotlib as mpl
      7
----> 8 from . import palettes, _orig_rc_params
      9
     10

c:\python27\lib\site-packages\seaborn\palettes.py in <module>()
     10 from .external.six.moves import range
     11
---> 12 from .utils import desaturate, set_hls_values, get_color_cycle
     13 from .xkcd_rgb import xkcd_rgb
     14 from .crayons import crayons

c:\python27\lib\site-packages\seaborn\utils.py in <module>()
      5
      6 import numpy as np
----> 7 from scipy import stats
      8 import pandas as pd
      9 import matplotlib as mpl

c:\python27\lib\site-packages\scipy\__init__.py in <module>()
     59 __all__ = ['test']
     60
---> 61 from numpy._distributor_init import NUMPY_MKL  # requires numpy+mkl
     62
     63 from numpy import show_config as show_numpy_config

ImportError: cannot import name NUMPY_MKL
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42

重新安装numpy或seaborn,使俩者的安装来源一样

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/小小林熬夜学编程/article/detail/657777
推荐阅读
相关标签
  

闽ICP备14008679号