Skip to content Skip to sidebar Skip to footer

Pip For Python2 While Python3 Pip Exists

I have both python2 and python3 in my system. But when I try : python -m pip install sklearn bash shows : /usr/bin/python: No module named pip And pip --version Yields : pip 2

Solution 1:

Thanks to HK boy The following works, it installs pip explicitly for the python version specified :

curl -O https://bootstrap.pypa.io/get-pip.py
sudo python get-pip.py

I already had pip3 before hand, so to install packages for python3, pip3 install <package> is enough.

Post a Comment for "Pip For Python2 While Python3 Pip Exists"