Fixing python bug for figuring out version.
@@ -27,7 +27,7 @@ import sys
import getopt
import pip
-pip_major_version = int(pip.__version__[:2])
+pip_major_version = int(pip.__version__.split(".")[0])
if pip_major_version >= 10:
from pip._internal.req import parse_requirements
from pip._internal.download import PipSession
