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 20.0.2 from /usr/lib/python3/dist-packages/pip (python 3.8)
Python versions are Python 2.7.18
and Python 3.8.2
.
How to correct this error by having two pip versions?
This is a similar question, but did not solve the issue.
OS is Ubuntu.