Using a virtual environment with Python 3.4

I've been learning Python recently. I had a choice between learning Python 2.7 or Python 3, and I chose the latter. It may be true that many people still work in Python 2.7, but I thought I should start off as up-to-date as possible.

This meant that I had to work out how to set up a virtual environment without virtualenv.