Jun-06-2022, 08:35 PM
(This post was last modified: Jun-06-2022, 08:46 PM by Led_Zeppelin.)
I am on Windows 10 with professional edition. I have tried to install seaborn several times. It installs.
But in a program when I have a line that says:
import seaborn I also get a long error that states:
I have also conda uninstalled seaborn and conda install seaborn.
Nothing changes. It is still the same error that I have shown above.
I just do not know what is causing this error. That is the reason for this post.
Any help appreciated.
Respectfully,
LZ
But in a program when I have a line that says:
import seaborn I also get a long error that states:
ImportError Traceback (most recent call last) Input In [3], in <cell line: 1>() ----> 1 import seaborn File ~\miniconda3\envs\pump-failure-prediction\lib\site-packages\seaborn\__init__.py:2, in <module> 1 # Import seaborn objects ----> 2 from .rcmod import * # noqa: F401,F403 3 from .utils import * # noqa: F401,F403 4 from .palettes import * # noqa: F401,F403 File ~\miniconda3\envs\pump-failure-prediction\lib\site-packages\seaborn\rcmod.py:5, in <module> 3 import functools 4 from distutils.version import LooseVersion ----> 5 import matplotlib as mpl 6 from cycler import cycler 7 from . import palettes File ~\miniconda3\envs\pump-failure-prediction\lib\site-packages\matplotlib\__init__.py:109, in <module> 105 from packaging.version import parse as parse_version 107 # cbook must import matplotlib only within function 108 # definitions, so it is safe to import from it here. --> 109 from . import _api, _version, cbook, docstring, rcsetup 110 from matplotlib.cbook import MatplotlibDeprecationWarning, sanitize_sequence 111 from matplotlib.cbook import mplDeprecation # deprecated File ~\miniconda3\envs\pump-failure-prediction\lib\site-packages\matplotlib\rcsetup.py:27, in <module> 25 from matplotlib import _api, cbook 26 from matplotlib.cbook import ls_mapper ---> 27 from matplotlib.colors import Colormap, is_color_like 28 from matplotlib.fontconfig_pattern import parse_fontconfig_pattern 29 from matplotlib._enums import JoinStyle, CapStyle File ~\miniconda3\envs\pump-failure-prediction\lib\site-packages\matplotlib\colors.py:51, in <module> 49 from numbers import Number 50 import re ---> 51 from PIL import Image 52 from PIL.PngImagePlugin import PngInfo 54 import matplotlib as mpl File ~\miniconda3\envs\pump-failure-prediction\lib\site-packages\PIL\Image.py:89, in <module> 80 MAX_IMAGE_PIXELS = int(1024 * 1024 * 1024 // 4 // 3) 83 try: 84 # If the _imaging C module is not present, Pillow will not load. 85 # Note that other modules should not refer to _imaging directly; 86 # import Image and use the Image.core variable instead. 87 # Also note that Image.core is not a publicly documented interface, 88 # and should be considered private and subject to change. ---> 89 from . import _imaging as core 91 if __version__ != getattr(core, "PILLOW_VERSION", None): 92 raise ImportError( 93 "The _imaging extension was built for another version of Pillow or PIL:\n" 94 f"Core version: {getattr(core, 'PILLOW_VERSION', None)}\n" 95 f"Pillow version: {__version__}" 96 ) ImportError: DLL load failed while importing _imaging: The specified module could not be found.I have no idea what this means. I have pip uninstalled seaborn and pip installed seaborn
I have also conda uninstalled seaborn and conda install seaborn.
Nothing changes. It is still the same error that I have shown above.
I just do not know what is causing this error. That is the reason for this post.
Any help appreciated.
Respectfully,
LZ