Add support for Python virtual environments

Make it possible to use Python virtual environments so that developers who don't want (or cannot) install Python packages to the global site packages directory can still build the library.