code: def mktmpenv_cmd(argv):
      
      parser = mkvirtualenv_argparser()
      env = '.'
      while (workon_home / env).exists():
          env = hex(random.getrandbits(64))[2:-1]
  
      args, rest = parser.parse_known_args(argv)
  
      mkvirtualenv(env, args.python, args.packages, requirements=args.requirements,
                   rest=rest)
      print('This is a temporary environment. It will be deleted when you exit')
      try:
          if args.activate:
              # only used for testing on windows
              shell(env)
      finally:
          return rmvirtualenvs([env])
docs: Create a temporary virtualenv.