【问题标题】:Cannot import seaborn [WinError 126] The specified module could not be found无法导入seaborn [WinError 126] 找不到指定的模块
【发布时间】:2021-10-22 10:41:31
【问题描述】:

我正在尝试在我的笔记本 [ArcGIS Pro 的一部分] 中导入 seaborn,我得到 [WinError 126] The specified module could not be found 错误。

    ---------------------------------------------------------------------------
OSError                                   Traceback (most recent call last)
In  [3]:
Line 1:     import seaborn as sns

File C:\Users\borou\AppData\Local\ESRI\conda\envs\ArcGIS_1\lib\site-packages\seaborn\__init__.py, in <module>:
Line 2:     from .rcmod import *  # noqa: F401,F403

File C:\Users\borou\AppData\Local\ESRI\conda\envs\ArcGIS_1\lib\site-packages\seaborn\rcmod.py, in <module>:
Line 7:     from . import palettes

File C:\Users\borou\AppData\Local\ESRI\conda\envs\ArcGIS_1\lib\site-packages\seaborn\palettes.py, in <module>:
Line 9:     from .utils import desaturate, get_color_cycle

File C:\Users\borou\AppData\Local\ESRI\conda\envs\ArcGIS_1\lib\site-packages\seaborn\utils.py, in <module>:
Line 10:    from scipy import stats

File C:\Users\borou\AppData\Local\ESRI\conda\envs\ArcGIS_1\lib\site-packages\scipy\__init__.py, in <module>:
Line 136:   from . import _distributor_init

File C:\Users\borou\AppData\Local\ESRI\conda\envs\ArcGIS_1\lib\site-packages\scipy\_distributor_init.py, in <module>:
Line 59:    WinDLL(os.path.abspath(filename))

File C:\Users\borou\AppData\Local\ESRI\conda\envs\ArcGIS_1\lib\ctypes\__init__.py, in __init__:
Line 364:   self._handle = _dlopen(self._name, mode)

OSError: [WinError 126] The specified module could not be found

非常感谢任何信息。

【问题讨论】:

    标签: python jupyter-notebook seaborn arcgis


    【解决方案1】:

    您是否已经从命令行安装了 seaborn?你可以试试: pip install seaborn

    【讨论】:

    • 当然可以。错误消息还显示 seaborn 已安装。
    猜你喜欢
    • 2020-08-17
    • 1970-01-01
    • 2020-10-22
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-09-03
    • 2021-03-21
    相关资源
    最近更新 更多