Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit dabc706

Browse filesBrowse files
committed
Add current Python version in setup.py error message.
1 parent 13ee932 commit dabc706
Copy full SHA for dabc706

File tree

Expand file treeCollapse file tree

1 file changed

+3
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+3
-1
lines changed

‎setup.py

Copy file name to clipboardExpand all lines: setup.py
+3-1Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,13 @@
1313
if sys.version_info < min_version:
1414
error = """
1515
Beginning with Matplotlib 3.1, Python {0} or above is required.
16+
You are using Python {1}.
1617
1718
This may be due to an out of date pip.
1819
1920
Make sure you have pip >= 9.0.1.
20-
""".format('.'.join(str(n) for n in min_version))
21+
""".format('.'.join(str(n) for n in min_version),
22+
'.'.join(str(n) for n in sys.version_info[:3]))
2123
sys.exit(error)
2224

2325
from pathlib import Path

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.