# Batch - Python Virtual Environment
*Source: [Windows batch file for quick virtualenv creation (github.com)](https://gist.github.com/bskinn/eb4a30aaac418b63e602ad3dba4c727c)*
```powershell
@echo off
for /f "tokens=*" %%C in ( 'python3.9 -c "import os, re; print(re.search(r'[^\\]+