I freshly installed Linux Mint 18.3 on my laptop. Mint 18.3 ships with default Python version 3.5.2. Since, I need to work in Python3.6.3, I grabbed a tar ball from Python.org and installed it with following commands:
$ cd Python3.6.3
./configure
make
make test
sudo make install
Then in terminal when I type python3, it gives following output:
linuxsagar@Satellite-P755 ~ $ python3
Python 3.6.3 (default, Jan 21 2018, 19:33:32)
[GCC 5.4.0 20160609] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>>
Which is totally fine. Then I installed pip.
$ sudo apt install python3-pip
I expect that pip is installed for python3.6.3, but while executing pip3 -V it gives:
pip 8.1.1 from /usr/lib/python3/dist-packages (python 3.5)
How do I install pip only for python3.6.3?
which python3
and add that path to your.bashrc
file