From here Installing Python Modules:
Here is how to install packages for various versions that are installed at the same time on Linux, Mac, and POSIX:
python2 -m pip install SomePackage # Default Python 2
python2.7 -m pip install SomePackage # Specifically Python 2.7
python3 -m pip install SomePackage # Default Python 3
python3.4 -m pip install SomePackage # Specifically Python 3.4
python3.5 -m pip install SomePackage # Specifically Python 3.5
python3.6 -m pip install SomePackage # Specifically Python 3.6
python2 -m pip install SomePackage # Default Python 2
python2.7 -m pip install SomePackage # Specifically Python 2.7
python3 -m pip install SomePackage # Default Python 3
python3.4 -m pip install SomePackage # Specifically Python 3.4
python3.5 -m pip install SomePackage # Specifically Python 3.5
python3.6 -m pip install SomePackage # Specifically Python 3.6
On Windows, use the py Python launcher in combination with the -m switch:
py -2 -m pip install SomePackage # Default Python 2
py -2.7 -m pip install SomePackage # Specifically Python 2.7
py -3 -m pip install SomePackage # Default Python 3
py -3.4 -m pip install SomePackage # Specifically Python 3.4
py -2 -m pip install SomePackage # Default Python 2
py -2.7 -m pip install SomePackage # Specifically Python 2.7
py -3 -m pip install SomePackage # Default Python 3
py -3.4 -m pip install SomePackage # Specifically Python 3.4