
Install Python and Python3 using apt-get command on Ubuntu
Mostly Python comes pre-installed on most of the Ubuntu Linux distributions, but if you have something that's the bare minimal setup, you may not have it installed and when you try to run python command it will give you errors!
# python
bash: python: command not found
# python3
bash: python3: command not found
Installing Python 2.x on Ubuntu
In order to install Python version, you can make use of the command,
# apt-get install python
# python
Python 2.7.18 (default, Mar 8 2021, 13:02:45)
[GCC 9.3.0] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>>
Installing Python 3.x on Ubuntu
In order to install Python 3 version, you can make use of the command,
# apt-get install python3
# python3
Python 3.8.10 (default, Nov 26 2021, 20:14:08)
[GCC 9.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
More Posts related to Ubuntu,
- Install Oh My Zsh on Ubuntu Docker complete steps
- Installing Home-brew on Ubuntu
- Install Golang (Go) on Ubuntu
- Install specific JRE on Ubuntu using apt
- How to stop/start/restart apache server using command [Ubuntu]
- How to install zsh shell on Ubuntu
- Quick steps to install Nginx on Ubuntu Linux
- How to know current Ubuntu Linux version via terminal command
- Add new user in Ubuntu Linux using Terminal Command
- Fix Ubuntu /bin/sh: 1: zsh: not found error
- How to install Python on Ubuntu
- [Fix] Ubuntu E: Unable to locate package sudo error
- How to stop MongoDB Server running on Ubuntu
- Install postgres Client using apt-get command
- How to kill service running on a port on Ubuntu Linux
- [fix] openssl No such file or directory error C++
- Fix - sudo: systemctl: command not found
- Access Windows share folder in Ubuntu Device in Network
- Add or remove users from sudo group - Ubuntu
- Quickly install Apache Server on Ubuntu Linux
- Fix: Ubuntu (Linux) - bash: sudo: command not found error
More Posts:
- List of jars required for Struts2 project - Java
- Background task activation is spurious error - Windows 10, Office 2016, Office 365 - HowTos
- Go to Specific file path using Mac Finder - MacOS
- Convert Float to String in Python - Python
- Install the minimal Linux on Docker (only 5 mb Alpine Linux) - Docker
- How to fix: Please check your network connection (Retry) - HowTos
- Check Wifi Connection static Android Programming - Android
- 'pwd' is not recognized as an internal or external command, operable program or batch file. [Windows] - Bash