Skip to content

Commit 59b29f5

Browse files
tacaswellzanieb
andauthored
DOC: tweak suggestion for upgrading uv managed Python
Co-authored-by: Zanie Blue <[email protected]>
1 parent bc2ed87 commit 59b29f5

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lib/matplotlib/backends/_backend_tk.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,10 @@
3737
is_uv_python = "/uv/python" in (os.path.realpath(sys.executable))
3838
if is_uv_python:
3939
raise ImportError(
40-
"Failed to import tkagg backend. You are using a uv-installed python "
41-
"executable, which is not compatible with Tk. "
42-
"Please update your python via: "
43-
"`uv self update && uv python upgrade --reinstall`"
40+
"Failed to import tkagg backend. You appear to be using an outdated "
41+
"version of uv's managed Python distribution which is not compatible with Tk. "
42+
"Please upgrade to the latest uv version, then update Python with:"
43+
"`uv python upgrade --reinstall`"
4444
) from e
4545
else:
4646
raise ImportError(

0 commit comments

Comments
 (0)