Fix issue #6833

'pip freeze' is used to determine if a certain pip package is installed with the pip.installed module. 'pip freeze' does not list the pip version, so although you can install pip itself with 'pip.installed', it would complain that it installed pip but could not find it in 'pip freeze' output. This injects the pip version into the packages dict of installed packages.

Fixes issue #6833