python --version: 3.9
Last update: 3/24/26
path: D:\User15406\Acaleph\conda_envs\d2l\python.exe torch 1.12.0 torchvision 0.13.0 d2l 0.17.6 numpy 2.0.2 pandas 1.2.4 matplotlib 3.5.1 matplotlib-inline 0.1.7 jupyter 1.0.0
Create this environment:
conda create --name d2l python=3.9 -y
D:\User15406\Acaleph\conda_envs\d2l\lib\site-packages\matplotlib_inline\backend_inline.py line 218
original: backend = matplotlib.rcParams._get("backend")
new: backend = matplotlib.rcParams.get("backend")
Then I can 'from matplotlib_inline import backend_inline' without error.
All Packages:
(D:\User15406\Acaleph\conda_envs\d2l) PS C:\Users\15460> pip list Package Version ------------------------- ------------ anyio 4.12.1 argon2-cffi 25.1.0 argon2-cffi-bindings 25.1.0 arrow 1.4.0 asttokens 3.0.1 attrs 26.1.0 beautifulsoup4 4.14.3 bleach 6.2.0 certifi 2026.2.25 cffi 2.0.0 chardet 4.0.0 charset-normalizer 3.4.6 colorama 0.4.6 comm 0.2.3 cycler 0.12.1 d2l 0.17.6 debugpy 1.8.20 decorator 5.2.1 defusedxml 0.7.1 exceptiongroup 1.3.1 executing 2.2.1 fastjsonschema 2.21.2 fonttools 4.60.2 fqdn 1.5.1 idna 2.10 importlib_metadata 8.7.1 ipykernel 6.31.0 ipython 8.18.1 ipython-genutils 0.2.0 ipython_pygments_lexers 1.1.1 ipywidgets 8.1.8 isoduration 20.11.0 jedi 0.19.2 Jinja2 3.1.6 jsonpointer 3.0.0 jsonschema 4.25.1 jsonschema-specifications 2025.9.1 jupyter 1.0.0 jupyter_client 8.6.3 jupyter-console 6.6.3 jupyter_core 5.8.1 jupyter-events 0.12.0 jupyter_server 2.17.0 jupyter_server_terminals 0.5.4 jupyterlab_pygments 0.3.0 jupyterlab_widgets 3.0.16 kiwisolver 1.4.7 lark 1.3.1 MarkupSafe 3.0.3 matplotlib 3.5.1 matplotlib-inline 0.2.1 mistune 3.2.0 nbclassic 1.3.3 nbclient 0.10.2 nbconvert 7.17.0 nbformat 5.10.4 nest-asyncio 1.6.0 notebook 6.5.4 notebook_shim 0.2.4 numpy 1.21.5 overrides 7.7.0 packaging 26.0 pandas 1.2.4 pandocfilters 1.5.1 parso 0.8.6 pillow 11.3.0 pip 25.2 platformdirs 4.4.0 prometheus_client 0.24.1 prompt_toolkit 3.0.52 psutil 7.2.2 pure_eval 0.2.3 pycparser 2.23 Pygments 2.19.2 pyparsing 3.3.2 python-dateutil 2.9.0.post0 python-json-logger 4.0.0 pytz 2026.1.post1 pywin32 311 pywinpty 3.0.3 PyYAML 6.0.3 pyzmq 27.1.0 qtconsole 5.7.1 QtPy 2.4.3 referencing 0.36.2 requests 2.25.1 rfc3339-validator 0.1.4 rfc3986-validator 0.1.1 rfc3987-syntax 1.1.0 rpds-py 0.27.1 Send2Trash 2.1.0 setuptools 80.9.0 six 1.17.0 soupsieve 2.8.3 stack-data 0.6.3 terminado 0.18.1 tinycss2 1.4.0 torch 1.12.0 torchvision 0.13.0 tornado 6.5.5 traitlets 5.14.3 typing_extensions 4.15.0 tzdata 2025.3 uri-template 1.3.0 urllib3 1.26.20 wcwidth 0.6.0 webcolors 24.11.1 webencodings 0.5.1 websocket-client 1.9.0 wheel 0.45.1 widgetsnbextension 4.0.15 zipp 3.23.0