VirtualEnv is very convenient tool if you are using python based software for your projects. It works on Windows, Linux and Mac. Many Python developers use pip and virtualenv. I am a Django developer and i love virtualenv because it gives me option to use different versions of Django on the same system. For example if you are using Django for web development, then virtualenv can help you to work with different versions of Django framework. Same is also applicable to Flask. Virtualenv creates a virtual environment for your project, where you can install another version of the software you are using.  Here we’ll see how to install Python, Pip and virtualenv on windows PC system.

Install Python pip and virtualenv on windows

Install Python

First install python on your windows. Go to the official python website and download the python version you like. Also make sure that it is according to your operating system type, 32-bit or 64-bit. After downloading it run the executable file to install it.
Now you also need to add python to windows path so that you can run it conveniently from the command prompt. So after installing python go to desktop, right-click on the “Computer” icon on the Desktop or in the Start menu, and choose “Properties”. Then click on “Advanced System settings” (in Windows XP, click on the “Advanced” tab instead). Then click on the “Environment variables” button. Finally, double-click on the “Path” variable in the “System variables” section, and add the path of your Python interpreter’s Scripts folder. Be sure to delimit it from existing values with a semicolon. Assuming you are using Python 2.7 on the default path, add the following value:

Install Pip

To install pip, go to pip website and download the file. ( right click on it and select “save link as..” and save it as Open command prompt and navigate to the location where you saved the pip file.  Install pip by typing:
Here is the name of pip file. If you gave it other name then type that name.
After installing pip add it to windows path. Open system variable (as you did in python installation) and add following value (assuming you are using Python 2.7):
Be sure to delimit it from existing values with a semicolon.

Install Virtualenv

To install virtualenv, open command prompt and type:
pip install virtualenv
This command will start downloading packages required for virtualenv and later it’ll install it.