virtualenv venv2
source venv2/bin/activate
pip install pytest
virtualenv venv3 -p python3
source venv3/bin/activate
pip install pytest
apt-get install python3-pytest
yum install python3-pytest