Seaborn导入错误

时间:2018-06-26 08:09:41

标签: python dll seaborn

我一直试图在Python 3.6中导入Seaborn,但是我总是遇到错误:
 ImportError: DLL load failed: The specified module could not be found.

我尝试安装2个DLL(msvcp71msvcr71),但这没有帮助。我正在使用Windows 10。

完整错误为:     进口seaborn

Traceback (most recent call last):

  File "<stdin>", line 1, in <module>

  File "C:\Python36\lib\site-packages\seaborn\__init__.py", line 6, in <module>
    from .rcmod import *

  File "C:\Python36\lib\site-packages\seaborn\rcmod.py", line 8, in <module>
    from . import palettes, _orig_rc_params

  File "C:\Python36\lib\site-packages\seaborn\palettes.py", line 12, in <module>
    from .utils import desaturate, set_hls_values, get_color_cycle

  File "C:\Python36\lib\site-packages\seaborn\utils.py", line 7, in <module>
    from scipy import stats

  File "C:\Python36\lib\site-packages\scipy\stats\__init__.py", line 343, in <module>
    from .stats import *

  File "C:\Python36\lib\site-packages\scipy\stats\stats.py", line 169, in <module>
    import scipy.special as special

  File "C:\Python36\lib\site-packages\scipy\special\__init__.py", line 640, in <module>
    from ._ufuncs import *

ImportError: DLL load failed: The specified module could not be found.

1 个答案:

答案 0 :(得分:0)

问题出在Scipy中,所以我将其卸载了(pip卸载),然后重新安装了Scipy。还重新安装了seaborn。可行。

尝试从.whl安装不起作用,但是pip起作用。