code: def create_venv(requested_deps, interpreter, is_current, options, pip_options):
      
      # create virtualenv
      env = _FadesEnvBuilder()
      env_path, env_bin_path, pip_installed = env.create_env(interpreter, is_current, options)
      venv_data = {}
      venv_data['env_path'] = env_path
      venv_data['env_bin_path'] = env_bin_path
      venv_data['pip_installed'] = pip_installed
  
      # install deps
      installed = {}
      for repo in requested_deps.keys():
          if repo in (REPO_PYPI, REPO_VCS):
              mgr = PipManager(env_bin_path, pip_installed=pip_installed, options=pip_options)
          else:
              logger.warning("Install from %r not implemented", repo)
              continue
          installed[repo] = {}
  
          repo_requested = requested_deps[repo]
          logger.debug("Installing dependencies for repo %r: requested=%s", repo, repo_requested)
          for dependency in repo_requested:
              try:
                  mgr.install(dependency)
              except Exception:
                  logger.debug("Installation Step failed, removing virtualenv")
                  destroy_venv(env_path)
                  raise FadesError('Dependency installation failed')
  
              if repo == REPO_VCS:
                  # no need to request the installed version, as we'll always compare
                  # to the url itself
                  project = dependency.url
                  version = None
              else:
                  # always store the installed dependency, as in the future we'll select the venv
                  # based on what is installed, not what used requested (remember that user may
                  # request >, >=, etc!)
                  project = dependency.project_name
                  version = mgr.get_version(project)
              installed[repo][project] = version
  
          logger.debug("Installed dependencies: %s", installed)
      return venv_data, installed
docs: Create a new virtualvenv with the requirements of this script.