Create a Python virtual environment in your test that cleans up on teardown. The fixture has utility methods to install packages and list what's installed.