Adapted from this link
https://unix.stackexchange.com/questions/410579/change-the-python3-default-version-in-ubuntu
sudo update-alternatives --install /usr/bin/python python /usr/bin/python3.5 1
annoying note #1. Pip install is fskced up on Ubuntu. It installs a wrapper for python-pip, but doesn't install the underlying python 3 main version.
so do this:
sudo apt-get -y install python3-pip
if ubuntu unattended upgrade is running, kill it by editing
/etc/apt/apt.conf.d/10periodic
APT::Periodic::Update-Package-Lists "1";
change the 1 to 0, and reboot (easiest). If update is in progress
killing the scripts is a big PITA.
https://linoxide.com/ubuntu-how-to/enable-disable-unattended-upgrades-ubuntu-16-04/
if you have to remove pip to start over use:
sudo apt-get purge python-pip
upgrade pip with
pip3 install --user --upgrade pip
Install mongo db
https://www.digitalocean.com/community/tutorials/how-to-install-mongodb-on-ubuntu-18-04
--30--