get the command pip3
You have Python 2 and Python 3 on the same machine. You want to install a package that requires Python 3. You cannot use the command “
pip” because it will install the package as if it were written in Python 2. You want a “
Solution #1 (20140912)
sudo apt-get install python3-pip
I found the solution here.
$ wget https://raw.github.com/pypa/pip/master/contrib/get-pip.py $ sudo python3 get-pip.py
Now you have a “
pip3” command that you can use to install Python 3 libraries.