is there a way to install Python 2.7 on Ubuntu 18.04? I tried this command but it isn't working.
sudo apt install python-minimal
Is there a way to install it manually? I try python 2.7 for a software that didn't support python 3.
Thanks!
Objective. Python version 3 is now the default python interpreter on Ubuntu 18.04 Desktop or Server release. However, if you need to install the older Python 2 version you can do that with a single apt command.
Run these commands to ensure your repositories are up to date before installing
sudo apt update
sudo apt upgrade
sudo apt install python2.7
Then to install pip for python 2:
sudo apt install python-pip
As my comment has solved the issue, I will develop it a little more in this answer for further reference.
Try using aptitude, it better manage conflicting packages for you:
sudo aptitude install python-minimal
Reference: https://askubuntu.com/a/451078/1006720
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With