Pip and virtualenv on Windows

Written by Art, June 18, 2017

Install pip

Pip (Python Package Installer), official documentation for pip.

Usually Python3 comes with pip preinstalled. If you get an error "pip command not found", use the following command to install pip:

Download get-pip.py, make sure you're saving file to Desktop

In your Command Prompt navigate to Desktop

cd Desktop

Execute get-pip.py

python get-pip.py

Now pip should work system wide.


In your Command Prompt enter:

pip install virtualenv

Launch virtualenv

In your Command Prompt navigate to your project:

cd your_project

Within your project:

virtualenv env

Activate your virtualenv:

on Windows, virtualenv creates a batch file


to activate virtualenv on Windows, activate script is in the Scripts folder :




Another way to install pip

Save the "ez_setup.py" file to your desktop form https://bootstrap.pypa.io/ez_setup.py

In your Command Prompt navigate to Desktop:

cd Desktop

Execute ez_setup.py:

python ez_setup.py

install pip:

easy_install pip

Share with:

About author


Art is a FinTech enthusiast who has a great passion for coding and teaching. He earned a M.Sc. from Adelphi University, Garden City, New York. Currently, he develops software for the financial services industry and leads classes and workshops in Python at PracticalProgramming.co

Python for Web Scraping Online Livestream

We go through the whole process of gathering, storing and analyzing data from the Web


Python Fundamentals

Easy way to learn fundamentals of Python for complete beginners