fixes #5093

this is a patch to activate a virtualenv before running pip install. Fixes issue #5093