A batch scripts to automatically activate virtual environment when using Python-Virtualenv when entering working directory in windows command prompt.
On windows, you need to manually activate python virtualenv environment inside working directory. Using this script, you can automatically activate environment when entering your working directory and deactivate while leaving the working environment.
- Python and virtualenv package should have already installed in your system
- Virtual environment should be named identical to your working directory to make this script work.
The installation of pywin-venv is super easy. Just run the following installation command as administrator in a Command Prompt terminal:
curl "https://raw.githubusercontent.com/fiziechemi/pywin-venv/master/install.cmd" -o "%USERPROFILE%\install.cmd" & "%USERPROFILE%\install.cmd"