If you are in a terminal under Bash or any other semi-professional shell with tab completion, try writing pip and then <tab> . If I do this, I see:
none@vacuum:~$ pip pip pip3 pip3.5 pip3.6
As you can see, I can choose to run pip commands only under pip , but I can choose even newer versions of pip. To find out which version is associated with the pip command (with nothing else), run pip as usual with the --version or -V flag. In my case pip -V gives:
none@vacuum:~$ pip -V pip 9.0.1 from /usr/local/lib/python3.6/dist-packages (python 3.6)
In addition, if you are developing in PyCharm, you can press Alt+Enter when the cursor is under the name of a module that cannot be imported to open a context-sensitive floating menu that allows you to install the module. (You can also manage the list of installed modules for a specific version of Python in the PyCharm settings menu in the Project Interpreter submenu.)
Acsor
source share