install virtualenv using pip or pip3?

Tag: pip , homebrew Author: lt6337085 Date: 2014-01-24

I used brew to install both python2 and python3

brew install python
brew install python3

I noticed that there are pip and pip3 so which pip should I use to create virtualenv

pip install virtualenv or pip3 install virtualenv

Other Answer1

Use pip install virtualenv to create a python env and pip3 install virtualenv to install a python3 env

The difference is required because if you use pip install virtualenv and need python3 packages, you will get all kinds of errors!

comments:

so I did both pip install virtualenv and pip3 install virtualenv but there seems to be only one virtualenv so how can I know if that virtualenv is the one created by pip or pip3