you can pip install rosdep instead of apt-get which should be more portable and work inside a virtualenv