在Pycharm应用程序中安装seaborn模块的问题

时间:2020-08-21 05:05:36

标签: python python-3.x pycharm seaborn python-import

我正在尝试将seaborn模块(使用Python 3.7)导入到我的项目中(我正在使用Pycharm应用程序)。这是我的代码:

import os
import google_auth_oauthlib.flow
import googleapiclient.discovery
import pandas as pd
import seaborn as sns

这是我执行上述代码的错误消息:

Traceback (most recent call last):
  File "C:/Users/user/PycharmProjects/test/main.py", line 6, in <module>
    import seaborn
  File "C:\Users\user\PycharmProjects\test\venv\lib\site-packages\seaborn\__init__.py", line 6, in <module>
    from .rcmod import *
  File "C:\Users\user\PycharmProjects\test\venv\lib\site-packages\seaborn\rcmod.py", line 7, in <module>
    from . import palettes, _orig_rc_params
  File "C:\Users\user\PycharmProjects\test\venv\lib\site-packages\seaborn\palettes.py", line 9, in <module>
    from .utils import desaturate, set_hls_values, get_color_cycle
  File "C:\Users\user\PycharmProjects\test\venv\lib\site-packages\seaborn\utils.py", line 6, in <module>
    from scipy import stats
  File "C:\Users\user\PycharmProjects\test\venv\lib\site-packages\scipy\__init__.py", line 136, in <module>
    from . import _distributor_init
  File "C:\Users\user\PycharmProjects\test\venv\lib\site-packages\scipy\_distributor_init.py", line 61, in <module>
    WinDLL(os.path.abspath(filename))
  File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.7_3.7.2288.0_x64__qbz5n2kfra8p0\lib\ctypes\__init__.py", line 364, in __init__
    self._handle = _dlopen(self._name, mode)
OSError: [WinError 126] The specified module could not be found

有人知道为什么找不到seaborn模块吗?我已经使用python解释器添加了seaborn软件包。

0 个答案:

没有答案