Handle pip versions lower than 1.2 when parsing the package using `pip.req`.
Instantiate a logger object to log.
Added mocked pip installation test-case for when pip's version is `<=1.1`
Merge pull request #6943 from s0undt3ch/hotfix/pip-requirements-parsing

Handle pip versions lower than 1.2 when parsing the package using `pip.req`