I am totally confused on the relation between pip and python versions. I am using ubuntu 15.10
I gave locate /usr/bin/pip
I have got the following response.
/usr/bin/pip
/usr/bin/pip2
/usr/bin/pip3
I installed pyLDAvis module using- pip install pyldavis
But I never see pyldavis module in pip list
and when I say import pyLDAvis
it throws me error saying no module named pyLDAvis
After spending much time I have found this module in pip2 list
.
- When I installed it using
pip
why did it install for python2.7 and why it's located in pip2 list and why not in pip list? - If we have only 2 python versions- python 2.x(pip2) and python
3.x(pip3) what's all this confusion with three executables for python and pip each-
python, python2.7, python3.5 and pip, pip2, pip3
? Please provide any background information and the main reason for this. - My existing python scripts are unable to run because the module is accessible by
python2.7
and not bypython
Do I now need to point(using symbolic link) python to python2.7 ? If yes do I need to install all the modules that I have installed using pip again with pip2 so that pip2 list has all the modules that were there for pip list earlier?