Skip to content

Commit dabc706

Browse files
committed
Add current Python version in setup.py error message.
1 parent 13ee932 commit dabc706

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

setup.py

+3-1
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)