I have CentOS7 installed. So python2.7 is natively installed under /usr/lib.
I want to switch to use python3 as my primary installation. So I downloaded python3.5x from the official site, and after installation its located under /usr/local/lib/. Even though I want to use python 3.x as my primary installation, I still must launch python with 'python3'. 'python' still launches python 2.7. Note: I perform install using 'make install', as opposed to 'make altinstall', as per README instructions.
If I use pip to install packages, they only get installed for python2.7. I've come across other posts, which suggest installing/using pip3. But I've been unable to figure out to get pip3 installed.
Here's the version of pip that I currently have installed:
# pip --version
pip 8.1.2 from /usr/lib/python2.7/site-packages/pip-8.1.2-py2.7.egg (python 2.7)
UPDATE:
It was indicated this question was a dup of this one:
How to install pip with Python 3?
My question is NOT how to install pip. But rather how to get pip working with 2 installations of python (2.7 and 3.x). It seems pip works for installing packages for python2.7 (the native python installation in CentOS7), but I cannot seem to get it to install packages for python3.