For Python 3:
All the responses suggest you to activate the virtual environment first, but that's not actually necessary. You can install the package running the following commnand:
python3 -m venv venv_name
venv_name/bin/python3 -m pip package_name