-
-
Notifications
You must be signed in to change notification settings - Fork 30
Description
Solution to issue cannot be found in the documentation.
- I checked the documentation.
Issue
the problem beginning when i used tensorborad it call me use tensorflow and i pip install tensorflow and it merge a lot of bugs, i used this command conda install revsion 6 and it merge this problem. i try to use many ways to clean this bug
ImportError Traceback (most recent call last)
Cell In[4], line 1
----> 1 import matplotlib
File d:\anaconda\envs\medical_image\lib\site-packages\matplotlib_init_.py:109
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 d:\anaconda\envs\medical_image\lib\site-packages\matplotlib\rcsetup.py:27
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 d:\anaconda\envs\medical_image\lib\site-packages\matplotlib\colors.py:51
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 d:\anaconda\envs\medical_image\lib\site-packages\PIL\Image.py:100
91 MAX_IMAGE_PIXELS: int | None = int(1024 * 1024 * 1024 // 4 // 3)
94 try:
95 # If the _imaging C module is not present, Pillow will not load.
96 # Note that other modules should not refer to _imaging directly;
97 # import Image and use the Image.core variable instead.
98 # Also note that Image.core is not a publicly documented interface,
99 # and should be considered private and subject to change.
--> 100 from . import _imaging as core
102 if version != getattr(core, "PILLOW_VERSION", None):
103 msg = (
104 "The _imaging extension was built for another version of Pillow or PIL:\n"
105 f"Core version: {getattr(core, 'PILLOW_VERSION', None)}\n"
106 f"Pillow version: {version}"
107 )
ImportError: DLL load failed while importing _imaging:
Installed packages
(medical_image) C:\Users\111>
(medical_image) C:\Users\111>
(medical_image) C:\Users\111>conda list --revision 6
2025-03-10 10:22:50 (rev 0)
+ca-certificates-2025.2.25 (defaults/win-64)
+libffi-3.4.4 (defaults/win-64)
+openssl-3.0.16 (defaults/win-64)
+pip-24.2 (defaults/win-64)
+python-3.8.20 (defaults/win-64)
+setuptools-75.1.0 (defaults/win-64)
+sqlite-3.45.3 (defaults/win-64)
+vc-14.42 (defaults/win-64)
+vs2015_runtime-14.42.34433 (defaults/win-64)
+wheel-0.44.0 (defaults/win-64)
2025-03-10 11:24:31 (rev 1)
+asttokens-2.0.5 (defaults/noarch)
+backcall-0.2.0 (defaults/noarch)
+colorama-0.4.6 (defaults/win-64)
+comm-0.2.1 (defaults/win-64)
+debugpy-1.6.7 (defaults/win-64)
+decorator-5.1.1 (defaults/noarch)
+executing-0.8.3 (defaults/noarch)
+importlib-metadata-7.0.1 (defaults/win-64)
+importlib_metadata-7.0.1 (defaults/noarch)
+ipykernel-6.29.5 (defaults/win-64)
+ipython-8.12.2 (defaults/win-64)
+jedi-0.19.1 (defaults/win-64)
+jupyter_client-8.6.0 (defaults/win-64)
+jupyter_core-5.7.2 (defaults/win-64)
+libsodium-1.0.18 (defaults/win-64)
+matplotlib-inline-0.1.6 (defaults/win-64)
+nest-asyncio-1.6.0 (defaults/win-64)
+packaging-24.1 (defaults/win-64)
+parso-0.8.3 (defaults/noarch)
+pickleshare-0.7.5 (defaults/noarch)
+platformdirs-3.10.0 (defaults/win-64)
+prompt-toolkit-3.0.43 (defaults/win-64)
+psutil-5.9.0 (defaults/win-64)
+pure_eval-0.2.2 (defaults/noarch)
+pygments-2.15.1 (defaults/win-64)
+python-dateutil-2.9.0post0 (defaults/win-64)
+pywin32-305 (defaults/win-64)
+pyzmq-25.1.2 (defaults/win-64)
+six-1.16.0 (defaults/noarch)
+stack_data-0.2.0 (defaults/noarch)
+tornado-6.4.1 (defaults/win-64)
+traitlets-5.14.3 (defaults/win-64)
+typing_extensions-4.11.0 (defaults/win-64)
+wcwidth-0.2.5 (defaults/noarch)
+zeromq-4.3.5 (defaults/win-64)
+zipp-3.20.2 (defaults/win-64)
2025-03-12 14:50:50 (rev 2)
+astra-toolbox-2.1.0 (astra-toolbox/label/dev/win-64)
+blas-1.0 (defaults/win-64)
+cudatoolkit-11.3.1 (defaults/win-64)
+icc_rt-2022.1.0 (defaults/win-64)
+intel-openmp-2023.1.0 (defaults/win-64)
+libastra-2.1.0 (astra-toolbox/label/dev/win-64)
+mkl-2023.1.0 (defaults/win-64)
+mkl-service-2.4.0 (defaults/win-64)
+mkl_fft-1.3.8 (defaults/win-64)
+mkl_random-1.2.4 (defaults/win-64)
+numpy-1.24.3 (defaults/win-64)
+numpy-base-1.24.3 (defaults/win-64)
+scipy-1.9.3 (defaults/win-64)
+tbb-2021.8.0 (defaults/win-64)
2025-03-12 14:55:45 (rev 3)
vs2015_runtime {14.42.34433 (defaults/win-64) -> 14.42.34438 (conda-forge/win-64)}
+_openmp_mutex-4.5 (conda-forge/win-64)
+brotli-1.0.9 (defaults/win-64)
+brotli-bin-1.0.9 (defaults/win-64)
+certifi-2020.6.20 (defaults/noarch)
+cycler-0.11.0 (defaults/noarch)
+fonttools-4.25.0 (defaults/noarch)
+freetype-2.12.1 (conda-forge/win-64)
+future-0.18.3 (defaults/win-64)
+kiwisolver-1.4.4 (defaults/win-64)
+lcms2-2.17 (conda-forge/win-64)
+lerc-4.0.0 (defaults/win-64)
+libbrotlicommon-1.0.9 (defaults/win-64)
+libbrotlidec-1.0.9 (defaults/win-64)
+libbrotlienc-1.0.9 (defaults/win-64)
+libdeflate-1.22 (defaults/win-64)
+libgcc-14.2.0 (conda-forge/win-64)
+libgomp-14.2.0 (conda-forge/win-64)
+libjpeg-turbo-3.0.3 (defaults/win-64)
+liblzma-5.6.4 (conda-forge/win-64)
+libpng-1.6.47 (conda-forge/win-64)
+libtiff-4.7.0 (conda-forge/win-64)
+libwebp-base-1.5.0 (conda-forge/win-64)
+libwinpthread-12.0.0.r4.gg4f2fc60ca (conda-forge/win-64)
+libxcb-1.17.0 (conda-forge/win-64)
+libzlib-1.3.1 (conda-forge/win-64)
+matplotlib-base-3.5.3 (conda-forge/win-64)
+munkres-1.1.4 (defaults/noarch)
+odl-0.8.1 (conda-forge/noarch)
+openjpeg-2.5.2 (defaults/win-64)
+pillow-10.4.0 (conda-forge/win-64)
+pthread-stubs-0.3 (defaults/win-64)
+pyparsing-3.0.4 (defaults/noarch)
+python_abi-3.8 (conda-forge/win-64)
+tk-8.6.13 (conda-forge/win-64)
+ucrt-10.0.20348.0 (defaults/win-64)
+vc14_runtime-14.42.34438 (conda-forge/win-64)
+xorg-libxau-1.0.12 (conda-forge/win-64)
+xorg-libxdmcp-1.1.5 (conda-forge/win-64)
+zstd-1.5.7 (conda-forge/win-64)
2025-03-24 16:18:25 (rev 4)
+libuv-1.48.0 (defaults/win-64)
2025-03-24 16:35:41 (rev 5)
ca-certificates {2025.2.25 (defaults/win-64) -> 2025.1.31 (conda-forge/win-64)}
certifi {2020.6.20 (defaults/noarch) -> 2024.2.2 (conda-forge/noarch)}
openssl {3.0.16 (defaults/win-64) -> 3.4.1 (conda-forge/win-64)}
+pyuv-1.4.0 (conda-forge/win-64)
2025-03-24 16:45:10 (rev 6)
+mpi-1.0 (conda-forge/win-64)
+openmpi-4.1.3 (conda-forge/noarch)Environment info
_openmp_mutex 4.5 2_gnu conda-forge
aiohappyeyeballs 2.4.4 pypi_0 pypi
aiohttp 3.10.11 pypi_0 pypi
aiosignal 1.3.1 pypi_0 pypi
alembic 1.14.1 pypi_0 pypi
antlr4-python3-runtime 4.9.3 pypi_0 pypi
astra-toolbox 2.1.0 py38he1a4279_0 astra-toolbox/label/dev
asttokens 2.0.5 pyhd3eb1b0_0
async-timeout 5.0.1 pypi_0 pypi
attrs 25.3.0 pypi_0 pypi
backcall 0.2.0 pyhd3eb1b0_0
beautifulsoup4 4.13.4 pypi_0 pypi
blas 1.0 mkl
blinker 1.8.2 pypi_0 pypi
brotli 1.0.9 h827c3e9_9
brotli-bin 1.0.9 h827c3e9_9
ca-certificates 2025.2.25 haa95532_0
cachetools 5.5.2 pypi_0 pypi
certifi 2025.1.31 pypi_0 pypi
charset-normalizer 3.4.1 pypi_0 pypi
cheroot 10.0.1 pypi_0 pypi
click 8.1.8 pypi_0 pypi
cloudpickle 3.1.1 pypi_0 pypi
colorama 0.4.6 py38haa95532_0
comm 0.2.1 py38haa95532_0
contourpy 1.1.1 pypi_0 pypi
cudatoolkit 11.3.1 h59b6b97_2
cycler 0.12.1 pypi_0 pypi
databricks-sdk 0.49.0 pypi_0 pypi
debugpy 1.6.7 py38hd77b12b_0
decorator 5.1.1 pyhd3eb1b0_0
deprecated 1.2.18 pypi_0 pypi
diffusers 0.32.2 pypi_0 pypi
docker 7.1.0 pypi_0 pypi
einops 0.8.1 pypi_0 pypi
etils 1.3.0 pypi_0 pypi
executing 0.8.3 pyhd3eb1b0_0
filelock 3.13.1 pypi_0 pypi
flask 3.0.3 pypi_0 pypi
flatbuffers 25.2.10 pypi_0 pypi
fonttools 4.56.0 pypi_0 pypi
freetype 2.12.1 hdaf720e_2 conda-forge
frozenlist 1.5.0 pypi_0 pypi
fsspec 2025.3.0 pypi_0 pypi
ftfy 6.2.3 pypi_0 pypi
future 0.18.3 py38haa95532_0
gcsfs 0.8.0 pypi_0 pypi
gitdb 4.0.12 pypi_0 pypi
gitpython 3.1.44 pypi_0 pypi
google 3.0.0 pypi_0 pypi
google-auth 2.38.0 pypi_0 pypi
google-auth-oauthlib 1.0.0 pypi_0 pypi
graphene 3.4.3 pypi_0 pypi
graphql-core 3.2.6 pypi_0 pypi
graphql-relay 3.2.0 pypi_0 pypi
greenlet 3.1.1 pypi_0 pypi
grpcio 1.70.0 pypi_0 pypi
gviz-api 1.10.0 pypi_0 pypi
h5py 3.11.0 pypi_0 pypi
huggingface-hub 0.29.3 pypi_0 pypi
icc_rt 2022.1.0 h6049295_2
imageio 2.35.1 pypi_0 pypi
importlib-metadata 7.0.1 py38haa95532_0
importlib-resources 6.4.5 pypi_0 pypi
importlib_metadata 7.0.1 hd3eb1b0_0
intel-openmp 2023.1.0 h59b6b97_46320
ipykernel 6.29.5 py38haa95532_0
ipython 8.12.2 py38haa95532_0
itsdangerous 2.2.0 pypi_0 pypi
jaraco-functools 4.1.0 pypi_0 pypi
jedi 0.19.1 py38haa95532_0
jinja2 3.1.4 pypi_0 pypi
joblib 1.4.2 pypi_0 pypi
jupyter_client 8.6.0 py38haa95532_0
jupyter_core 5.7.2 py38haa95532_0
keras 2.13.1 pypi_0 pypi
kiwisolver 1.4.7 pypi_0 pypi
lazy-loader 0.4 pypi_0 pypi
lcms2 2.17 hbcf6048_0 conda-forge
lerc 4.0.0 h5da7b33_0
libastra 2.1.0 cuda_11.3_0 astra-toolbox/label/dev
libbrotlicommon 1.0.9 h827c3e9_9
libbrotlidec 1.0.9 h827c3e9_9
libbrotlienc 1.0.9 h827c3e9_9
libclang 18.1.1 pypi_0 pypi
libdeflate 1.22 h5bf469e_0
libffi 3.4.4 hd77b12b_1
libgcc 14.2.0 h1383e82_2 conda-forge
libgomp 14.2.0 h1383e82_2 conda-forge
libjpeg-turbo 3.0.3 h827c3e9_0
liblzma 5.6.4 h2466b09_0 conda-forge
libpng 1.6.47 had7236b_0 conda-forge
libsodium 1.0.18 h62dcd97_0
libtiff 4.7.0 hdefb170_2 conda-forge
libuv 1.48.0 h827c3e9_0
libwebp-base 1.5.0 h3b0e114_0 conda-forge
libwinpthread 12.0.0.r4.gg4f2fc60ca h57928b3_9 conda-forge
libxcb 1.17.0 h0e4246c_0 conda-forge
libzlib 1.3.1 h2466b09_2 conda-forge
llvmlite 0.41.1 pypi_0 pypi
lpips 0.1.4 pypi_0 pypi
mako 1.3.9 pypi_0 pypi
markdown 3.7 pypi_0 pypi
markupsafe 2.1.5 pypi_0 pypi
matplotlib 3.7.5 pypi_0 pypi
matplotlib-base 3.5.3 py38h3268a40_2 conda-forge
matplotlib-inline 0.1.6 py38haa95532_0
mkl 2023.1.0 h6b88ed4_46358
mkl-service 2.4.0 py38h2bbff1b_1
mkl_fft 1.3.8 py38h2bbff1b_0
mkl_random 1.2.4 py38h59b6b97_0
mlflow 2.17.2 pypi_0 pypi
mlflow-skinny 2.17.2 pypi_0 pypi
monai 1.3.2 pypi_0 pypi
monai-generative 0.2.3 pypi_0 pypi
more-itertools 10.5.0 pypi_0 pypi
mpi 1.0 openmpi conda-forge
mpi4py 4.0.3 pypi_0 pypi
mpmath 1.3.0 pypi_0 pypi
multidict 6.1.0 pypi_0 pypi
munkres 1.1.4 py_0
nest-asyncio 1.6.0 py38haa95532_0
networkx 3.0 pypi_0 pypi
nibabel 5.2.1 pypi_0 pypi
numba 0.58.1 pypi_0 pypi
numpy 1.24.4 pypi_0 pypi
numpy-base 1.24.3 py38h8a87ada_1
odl 0.8.1 pyhd8ed1ab_0 conda-forge
omegaconf 2.3.0 pypi_0 pypi
openai-clip 1.0.1 pypi_0 pypi
opencv-python 4.11.0.86 pypi_0 pypi
openjpeg 2.5.3 h4d64b90_0 conda-forge
openmpi 4.1.3 h8b79891_4 conda-forge
openssl 3.0.16 h3f729d1_0
opentelemetry-api 1.31.1 pypi_0 pypi
opentelemetry-sdk 1.31.1 pypi_0 pypi
opentelemetry-semantic-conventions 0.52b1 pypi_0 pypi
opt-einsum 3.4.0 pypi_0 pypi
packaging 24.2 pypi_0 pypi
pandas 2.0.3 pypi_0 pypi
parso 0.8.3 pyhd3eb1b0_0
pickleshare 0.7.5 pyhd3eb1b0_1003
pillow 10.4.0 py38h8d10685_0 conda-forge
pip 25.0.1 pypi_0 pypi
platformdirs 3.10.0 py38haa95532_0
prompt-toolkit 3.0.43 py38haa95532_0
propcache 0.2.0 pypi_0 pypi
protobuf 3.20.3 pypi_0 pypi
psutil 5.9.0 py38h2bbff1b_0
pthread-stubs 0.3 h3c9f919_1
pure_eval 0.2.2 pyhd3eb1b0_0
pyarrow 17.0.0 pypi_0 pypi
pyasn1 0.6.1 pypi_0 pypi
pyasn1-modules 0.4.1 pypi_0 pypi
pydicom 2.4.4 pypi_0 pypi
pygments 2.15.1 py38haa95532_1
pynvml 11.5.3 pypi_0 pypi
pyparsing 3.1.4 pypi_0 pypi
python 3.8.20 h8205438_0
python-dateutil 2.9.0post0 py38haa95532_2
python_abi 3.8 2_cp38 conda-forge
pytz 2025.1 pypi_0 pypi
pyuv 1.4.0 py38h91455d4_1004 conda-forge
pywavelets 1.4.1 pypi_0 pypi
pywin32 305 py38h2bbff1b_0
pyyaml 6.0.2 pypi_0 pypi
pyzmq 25.1.2 py38hd77b12b_0
regex 2024.11.6 pypi_0 pypi
rsa 4.9 pypi_0 pypi
safetensors 0.5.3 pypi_0 pypi
scikit-image 0.21.0 pypi_0 pypi
scikit-learn 1.3.2 pypi_0 pypi
scipy 1.10.1 pypi_0 pypi
setuptools 75.1.0 py38haa95532_0
simpleitk 2.4.1 pypi_0 pypi
six 1.17.0 pypi_0 pypi
smmap 5.0.2 pypi_0 pypi
soupsieve 2.7 pypi_0 pypi
sqlalchemy 2.0.40 pypi_0 pypi
sqlite 3.45.3 h2bbff1b_0
sqlparse 0.5.3 pypi_0 pypi
stack_data 0.2.0 pyhd3eb1b0_0
sympy 1.13.1 pypi_0 pypi
tbb 2021.8.0 h59b6b97_0
tensorboard 2.13.0 pypi_0 pypi
tensorboard-data-server 0.7.2 pypi_0 pypi
tensorboard-plugin-profile 2.19.4 pypi_0 pypi
tensorboardx 2.6.2.2 pypi_0 pypi
tensorflow-estimator 2.13.0 pypi_0 pypi
tensorflow-intel 2.13.0 pypi_0 pypi
tensorflow-io-gcs-filesystem 0.31.0 pypi_0 pypi
termcolor 2.4.0 pypi_0 pypi
threadpoolctl 3.5.0 pypi_0 pypi
tifffile 2023.7.10 pypi_0 pypi
timm 1.0.15 pypi_0 pypi
tk 8.6.13 h5226925_1 conda-forge
tokenizers 0.20.3 pypi_0 pypi
torch 2.4.1+cu118 pypi_0 pypi
torchaudio 2.4.1+cu118 pypi_0 pypi
torchvision 0.19.1+cu118 pypi_0 pypi
tornado 6.4.1 py38h827c3e9_0
tqdm 4.67.1 pypi_0 pypi
traitlets 5.14.3 py38haa95532_0
transformers 4.46.3 pypi_0 pypi
typing-extensions 4.13.2 pypi_0 pypi
typing_extensions 4.11.0 py38haa95532_0
tzdata 2025.1 pypi_0 pypi
ucrt 10.0.20348.0 haa95532_0
ujson 5.10.0 pypi_0 pypi
urllib3 2.2.3 pypi_0 pypi
vc 14.42 haa95532_4
vc14_runtime 14.42.34438 hfd919c2_24 conda-forge
vs2015_runtime 14.42.34438 h7142326_24 conda-forge
waitress 3.0.0 pypi_0 pypi
wcwidth 0.2.13 pypi_0 pypi
werkzeug 3.0.6 pypi_0 pypi
wheel 0.44.0 py38haa95532_0
wrapt 1.17.2 pypi_0 pypi
xorg-libxau 1.0.12 h0e40799_0 conda-forge
xorg-libxdmcp 1.1.5 h0e40799_0 conda-forge
yarl 1.15.2 pypi_0 pypi
zeromq 4.3.5 hd77b12b_0
zipp 3.20.2 py38haa95532_0
zstd 1.5.7 hbeecb71_1 conda-forge