The pip program what you are using corresponds to the Python 2.7 version. You need to use the pip which corresponds to Python 3.x. So, you should be using
pip3 install virtualenv
Alternatively, you can create virtual environments in Python 3.3+ with the venv module, like this
python3 -m venv test