##// END OF EJS Templates
more pip infos
Matthias Bussonnier -
Show More
@@ -27,6 +27,18 b' import sys'
27 27 # This check is also made in IPython/__init__, don't forget to update both when
28 28 # changing Python version requirements.
29 29 if sys.version_info < (3,3):
30 try:
31 pip_message = 'This may be due to an out of date pip. Make sure you have pip >= 9.0.1. '
32 import pip
33 pip_version = tuple([int(x) for x in pip.__version__.split('.')[:3]])
34 print(pip_version)
35 if pip_version < (9, 0, 1) :
36 pip_message = 'You pip version is out of date, please install pip >= 9.0.1.'\
37 'pip {} detected.'.format(pip.__version__)
38 except Exception:
39 pass
40
41
30 42 error = """
31 43 IPython 6.0+ does not support Python 2.6, 2.7, 3.0, 3.1, or 3.2.
32 44 When using Python 2.7, please install IPython 5.x LTS Long Term Support version.
@@ -36,9 +48,9 b' See IPython `README.rst` file for more information:'
36 48
37 49 https://github.com/ipython/ipython/blob/master/README.rst
38 50
39 Python {} detected.
40
41 """.format(sys.version_info)
51 Python {py} detected.
52 {pip}
53 """.format(py=sys.version_info, pip=pip_message )
42 54
43 55 print(error, file=sys.stderr)
44 56 sys.exit(1)
General Comments 0
You need to be logged in to leave comments. Login now