找不到指定的模块

找不到指定的模块

本文介绍了错误:import seaborn- 运行程序时:from ._ufuncs import * ImportError:DLL 加载失败:找不到指定的模块的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用的是 Window 10 64 位Python版本:

I am using Window 10 64-bitPython version :

Python 3.6.2 (v3.6.2:5fd33b5, Jul 8 2017, 04:57:36) [MSC v.1900 64 位 (AMD64)] 在 win32 上

Python 3.6.2 (v3.6.2:5fd33b5, Jul 8 2017, 04:57:36) [MSC v.1900 64 bit (AMD64)] on win32

我已经安装了 scipy :

I have installed scipy :

C:\Users\Aswathi>pip install scipy-0.19.1-cp36-cp36m-win_amd64.whl
Requirement already satisfied: scipy==0.19.1 from file:///C:/Users/Aswathi/scipy-0.19.1-cp36-cp36m-win_amd64.whl in c:\users\aswathi\appdata\local\programs\python\python36\lib\site-packages
Requirement already satisfied: numpy>=1.8.2 in c:\users\aswathi\appdata\local\programs\python\python36\lib\site-packages (from scipy==0.19.1)

但我仍然面临 Pycharm 导入 seaborn 的错误


But I am still facing error on Pycharm for import seaborn

Traceback (most recent call last):
  File "C:/Users/Aswathi/Desktop/Analytics in Python - Edx/game_of_thrones_battle_dataset.py", line 3, in <module>
    import seaborn as sns
  File "C:\Users\Aswathi\AppData\Local\Programs\Python\Python36\lib\site-packages\seaborn\__init__.py", line 6, in <module>
    from .rcmod import *
  File "C:\Users\Aswathi\AppData\Local\Programs\Python\Python36\lib\site-packages\seaborn\rcmod.py", line 8, in <module>
    from . import palettes, _orig_rc_params
  File "C:\Users\Aswathi\AppData\Local\Programs\Python\Python36\lib\site-packages\seaborn\palettes.py", line 12, in <module>
    from .utils import desaturate, set_hls_values, get_color_cycle
  File "C:\Users\Aswathi\AppData\Local\Programs\Python\Python36\lib\site-packages\seaborn\utils.py", line 7, in <module>
    from scipy import stats
  File "C:\Users\Aswathi\AppData\Local\Programs\Python\Python36\lib\site-packages\scipy\stats\__init__.py", line 348, in <module>
    from .stats import *
  File "C:\Users\Aswathi\AppData\Local\Programs\Python\Python36\lib\site-packages\scipy\stats\stats.py", line 175, in <module>
    import scipy.special as special
  File "C:\Users\Aswathi\AppData\Local\Programs\Python\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.

推荐答案

我遇到了同样的问题.在最初寻找 seaborn 答案后,我意识到它与 scipy 问题 (ufuncs) 有关,它揭示了许多潜在的答案.

I had the same problem. After initially looking for seaborn answers I realised it relates to scipy problems (ufuncs), which reveals many potential answers.

这个问题:PYTHON DLL加载失败为我解决了问题

This question: PYTHON DLL load failed solved the problem for me

我从精彩的 非官方 Python 二进制文件中安装了相关的 numpy+mkl扩展包

这篇关于错误:import seaborn- 运行程序时:from ._ufuncs import * ImportError:DLL 加载失败:找不到指定的模块的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-01 00:32