I am trying to install 2 python versions:
1) 2.7.14
2) 3.7.2-1
I created them by using make commands:
wget https://www.python.org/ftp/python/2.7.14/Python-2.7.14.tgz
tar -xvf Python-2.7.14.tgz
cd Python-2.7.14
./configure --without-ensurepip --enable-optimizations
make
checkinstall -y
When I am unpacking one of them it overrides the second installed:
dpkg -i python_2.7.14-1_amd64.deb
dpkg: warning: downgrading python from 3.7.2-1 to 2.7.14-1
(Reading database ... 35940 files and directories currently installed.)
Preparing to unpack python_2.7.14-1_amd64.deb ...
Unpacking python (2.7.14-1) over (3.7.2-1) ...
Setting up python (2.7.14-1) ...
How can I have them both running on my ubuntu?
**** NOTE I DON'T WANT TO USE VIRTUAL ENVIRONMENT ****