How to compile python program in ubuntu terminal
- how to compile python program in ubuntu
- how to compile python program in ubuntu terminal
- how to compile and run python program in ubuntu terminal
- how to compile and run python program in ubuntu
How to compile python program in cmd
How to compile python code in visual studio...
This simple tutorial shows how to compile and install Python 3.11, Python 3.10, or other certain Python version in Ubuntu.
For Ubuntu 18.04, Ubuntu 20.04 and Ubuntu 22.04 LTS, there’s well trusted “deadsnakes” team PPA that maintains all the Python packages.
For non-LTS releases, you may build the programming language package manually from the source tarball.
NOTE: This tutorial is tested and works in Ubuntu 20.04, Ubuntu 22.04, and Ubuntu 23.04 in my case.
1.
Preparation:
Before getting started, you need to install some essential packages for building the computer language package.
Open terminal either by pressing Ctrl+Alt+T on keyboard or by searching from start menu.
When it opens, run the command below to install the dependencies:
sudo apt install wget build-essential libreadline-dev libncursesw5-dev libssl-dev libsqlite3-dev tk-dev libgdbm-dev libc6-dev libbz2-dev libffi-dev zlib1g-dev2.
Download Python Tarball:
You can simply download the latest tarball from the Python website via the link below:
In case you’re running Ubuntu without desktop environ
- how to compile python in terminal
- how to compile python program in cmd