From da6eaed9040325dc2615a958da565a957a46da9a Mon Sep 17 00:00:00 2001 From: anwarhusain Date: Fri, 27 Jul 2018 14:51:39 +0100 Subject: [PATCH] Update setup.py Inorder to work the pip update. https://stackoverflow.com/questions/25192794/no-module-named-pip-req --- setup.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 8e38188..e360937 100755 --- a/setup.py +++ b/setup.py @@ -1,7 +1,11 @@ #!/usr/bin/env python # -*- coding: utf-8 -*- -from pip.req import parse_requirements +#https://stackoverflow.com/questions/25192794/no-module-named-pip-req +try: # for pip >= 10 + from pip._internal.req import parse_requirements +except ImportError: # for pip <= 9.0.3 + from pip.req import parse_requirements try: from setuptools import setup except ImportError: