{"id":19905,"date":"2023-07-19T06:46:04","date_gmt":"2023-07-19T06:46:04","guid":{"rendered":"https:\/\/linuxways.net\/?p=19905"},"modified":"2024-02-29T15:44:14","modified_gmt":"2024-02-29T15:44:14","slug":"how-to-install-python-on-debian-12-bookworm","status":"publish","type":"post","link":"https:\/\/linuxways.net\/de\/debian\/how-to-install-python-on-debian-12-bookworm\/","title":{"rendered":"How to Install Python on Debian 12 Bookworm"},"content":{"rendered":"<p><strong>Python <\/strong>is a well-known high-level programming language used for web development, artificial intelligence, data analysis, and many more. It provides a lot of standard libraries and packages that have pre-written code for certain tasks on the system.<\/p>\n<p>Many Linux distributions including Debian come with <strong>Python <\/strong>pre-installed as many systems\u2019 packages depend on <strong>Python<\/strong>. However, you can also easily install and manage additional versions of <strong>Python <\/strong>on your system.<\/p>\n<p>This article will illustrate various methods for installing <strong>Python <\/strong>on Debian 12 systems.<\/p>\n<p><strong>Overview<\/strong><\/p>\n<ul>\n<li><a href=\"#post-19905-_jrzqa7ynbjt8\"><strong>How to Install Python on Debian 12<\/strong><\/a><\/li>\n<li><a href=\"#post-19905-_24uoiqegd137\"><strong>How to Run Python Scripts on Debian 12<\/strong><\/a><\/li>\n<li><a href=\"#post-19905-_39h5o2finm5\"><strong>How to Fix Debian 12 System If Python is Removed<\/strong><\/a><\/li>\n<li><a href=\"#post-19905-_drblte4hm9jg\"><strong>Final Thoughts <\/strong><\/a><\/li>\n<\/ul>\n<h2><a id=\"post-19905-_jrzqa7ynbjt8\"><\/a>How to Install Python on Debian 12<\/h2>\n<p><strong>Python <\/strong>can be installed on Debian 12, through the following methods:<\/p>\n<ul>\n<li><a href=\"#post-19905-_42va0dxmdcdn\"><strong>Default Debian Repository<\/strong><\/a><\/li>\n<li><a href=\"#post-19905-_40lj8we20pm2\"><strong>Source Code<\/strong><\/a><\/li>\n<li><a href=\"#post-19905-_sqhcsoxze68g\"><strong>Deb Package Files<\/strong><\/a><\/li>\n<li><a href=\"#post-19905-_chp5xu6rylg5\"><strong>Pyenv<\/strong><\/a><\/li>\n<\/ul>\n<h3><a id=\"post-19905-_42va0dxmdcdn\"><\/a>Method 1: Install Python on Debian 12 From Default Debian Repository<\/h3>\n<p>The default Debian repository consists of a wide range of software packages including <strong>Python<\/strong>. However, these packages are a bit outdated. You can install <strong>Python <\/strong>from the Debian repository by going through the following instructions:<\/p>\n<p><strong>Step 1: Update Debian Packages<\/strong><\/p>\n<p>First, refresh the Debian packages list through the given command:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">sudo<\/span> apt update<\/div><\/div>\n<p><strong>Step 2: Install Python on Debian 12<\/strong><\/p>\n<p>Then, install <strong>Python <\/strong>on your Debian 12 system from the Debian repository by typing out the provided command:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">sudo<\/span> apt <span class=\"kw2\">install<\/span> python3<\/div><\/div>\n<p>The below output indicates that the latest version provided by the Debian repository is already installed on the system:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"737\" height=\"301\" class=\"wp-image-26139\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/07\/word-image-19905-1-1.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/07\/word-image-19905-1-1.png 737w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/07\/word-image-19905-1-1-300x123.png 300w\" sizes=\"auto, (max-width: 737px) 100vw, 737px\" \/><\/p>\n<p><strong>Step 3: Verification<\/strong><\/p>\n<p>To ensure that <strong>Python <\/strong>is installed on the system, check its version:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\">python3 <span class=\"re5\">--version<\/span><\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"729\" height=\"112\" class=\"wp-image-26141\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/07\/word-image-19905-2-1.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/07\/word-image-19905-2-1.png 729w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/07\/word-image-19905-2-1-300x46.png 300w\" sizes=\"auto, (max-width: 729px) 100vw, 729px\" \/><\/p>\n<h3><a id=\"post-19905-_40lj8we20pm2\"><\/a>Method 2: Install Python on Debian 12 From Source Code<\/h3>\n<p>The official <strong>Python <\/strong>website has various <strong>Python <\/strong>source packages to get its latest version or any desired version. You can download the required source package and directly install <strong>Python <\/strong>on your Debian 12 system from the source code. Check out the following instructions for <strong>Python <\/strong>installation from the source code:<\/p>\n<p><strong>Step 1: Install Required Dependencies <\/strong><\/p>\n<p>First, you must install the basic dependencies and build tools that are necessary for extracting and installing the source code file via the following command:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">sudo<\/span> apt <span class=\"kw2\">install<\/span> zlib1g-dev build-essential libncurses5-dev libssl-dev libgdbm-dev libnss3-dev libsqlite3-dev libffi-dev libbz2-dev libreadline-dev <span class=\"re5\">-y<\/span><\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"737\" height=\"407\" class=\"wp-image-26143\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/07\/word-image-19905-3-1.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/07\/word-image-19905-3-1.png 737w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/07\/word-image-19905-3-1-300x166.png 300w\" sizes=\"auto, (max-width: 737px) 100vw, 737px\" \/><\/p>\n<p><strong>Step 2: Download Python\u2019s Source Code File<\/strong><\/p>\n<p>Then, visit the <a href=\"https:\/\/www.python.org\/downloads\/source\/\">official Python website<\/a>, copy the most recent source package file\u2019s link, and download it through the provided command:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">wget<\/span> https:<span class=\"sy0\">\/\/<\/span>www.python.org<span class=\"sy0\">\/<\/span>ftp<span class=\"sy0\">\/<\/span>python<span class=\"sy0\">\/<\/span>3.12.2<span class=\"sy0\">\/<\/span>Python-3.12.2.tgz<\/div><\/div>\n<p>Here, we are downloading the source code file of the latest <strong>Python <\/strong>version i.e. \u201c<strong>3.12.2<\/strong>\u201d.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"736\" height=\"364\" class=\"wp-image-26146\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/07\/word-image-19905-4-1.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/07\/word-image-19905-4-1.png 736w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/07\/word-image-19905-4-1-300x148.png 300w\" sizes=\"auto, (max-width: 736px) 100vw, 736px\" \/><\/p>\n<p>Alternatively, download the latest <strong>Python <\/strong>source code file directly from the website:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"778\" height=\"551\" class=\"wp-image-26147\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/07\/word-image-19905-5-1.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/07\/word-image-19905-5-1.png 778w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/07\/word-image-19905-5-1-300x212.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/07\/word-image-19905-5-1-768x544.png 768w\" sizes=\"auto, (max-width: 778px) 100vw, 778px\" \/><\/p>\n<p><strong>Step 3: Extract Source Code<\/strong><\/p>\n<p>After that, utilize the \u201c<strong>tar -zxf<\/strong>\u201d command along with the downloaded <strong>Python <\/strong>source code file to unzip it:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">tar<\/span> <span class=\"re5\">-zxf<\/span> Python-3.12.2.tgz<\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"740\" height=\"154\" class=\"wp-image-26154\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/07\/word-image-19905-6-1.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/07\/word-image-19905-6-1.png 740w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/07\/word-image-19905-6-1-300x62.png 300w\" sizes=\"auto, (max-width: 740px) 100vw, 740px\" \/><\/p>\n<p><strong>Step 4: Start Configuration Process<\/strong><\/p>\n<p>Now, redirect to the extracted directory i.e. \u201c<strong>Python-3.12.2<\/strong>\u201d using the \u201c<strong>cd<\/strong>\u201d command and type out the below-listed command to start the configuration process:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\">.<span class=\"sy0\">\/<\/span>configure <span class=\"re5\">--enable-optimizations<\/span><\/div><\/div>\n<p>Here, the \u201c<strong>&#8211;enable-optimizations<\/strong>\u201d option is used to allow additional optimization to improve the performance during the build process and enhance <strong>Python\u2019s <\/strong>performance.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"738\" height=\"367\" class=\"wp-image-26155\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/07\/word-image-19905-7-1.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/07\/word-image-19905-7-1.png 738w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/07\/word-image-19905-7-1-300x149.png 300w\" sizes=\"auto, (max-width: 738px) 100vw, 738px\" \/><\/p>\n<p><strong>Step 5: Compile Source Code<\/strong><\/p>\n<p>Next, start the build process with the help of the \u201c<strong>make<\/strong>\u201d command. You can also utilize the \u201c<strong>-j<\/strong>\u201d flag along with the specific number to optimize the build process through parallel compilation:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">make<\/span> <span class=\"re5\">-j5<\/span><\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"736\" height=\"383\" class=\"wp-image-26156\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/07\/word-image-19905-8.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/07\/word-image-19905-8.png 736w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/07\/word-image-19905-8-300x156.png 300w\" sizes=\"auto, (max-width: 736px) 100vw, 736px\" \/><\/p>\n<p><strong>Step 6: Install Python on Debian 12<\/strong><\/p>\n<p>Once done with the compilation process, run the given command for <strong>Python <\/strong>installation on your Debian 12 system:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">sudo<\/span> <span class=\"kw2\">make<\/span> altinstall<\/div><\/div>\n<p>This will install the <strong>Python\u2019s <\/strong>most up-to-date version without interpreting the default system <strong>Python<\/strong>:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"736\" height=\"384\" class=\"wp-image-26157\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/07\/word-image-19905-9.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/07\/word-image-19905-9.png 736w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/07\/word-image-19905-9-300x157.png 300w\" sizes=\"auto, (max-width: 736px) 100vw, 736px\" \/><\/p>\n<p><strong>Step 7: Verify Python Installation <\/strong><\/p>\n<p>Finally, check the Python\u2019s version to ensure that it is installed successfully:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\">python3.12 <span class=\"re5\">--version<\/span><\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"736\" height=\"113\" class=\"wp-image-26158\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/07\/word-image-19905-10.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/07\/word-image-19905-10.png 736w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/07\/word-image-19905-10-300x46.png 300w\" sizes=\"auto, (max-width: 736px) 100vw, 736px\" \/><\/p>\n<h2><a id=\"post-19905-_sqhcsoxze68g\"><\/a>Method 3: Install Python on Debian 12 Via Deb Package Files<\/h2>\n<p>The Deb package files are also available for installing the latest or any specific version of Python. You can install Python from the Deb package files by following the given steps:<\/p>\n<p><strong>Step 1: Download and Install Dependencies <\/strong><\/p>\n<p>First, you must download and install the necessary dependencies for installing Python from the deb package files. These dependencies include \u201c<strong>Python3.12-minimal<\/strong>\u201d, \u201c<strong>libpython3.12-stdlib<\/strong>\u201d, and \u201c<strong>libpython3.12-minimal<\/strong>\u201d. You can download these through the \u201c<strong>wget<\/strong>\u201d command:<\/p>\n<p><strong>For \u201cPython3.12-minimal\u201d:<\/strong><\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">wget<\/span> http:<span class=\"sy0\">\/\/<\/span>ftp.de.debian.org<span class=\"sy0\">\/<\/span>debian<span class=\"sy0\">\/<\/span>pool<span class=\"sy0\">\/<\/span>main<span class=\"sy0\">\/<\/span>p<span class=\"sy0\">\/<\/span>python3.12<span class=\"sy0\">\/<\/span>python3.12-minimal_3.12.2-<span class=\"nu0\">1<\/span>_amd64.deb<\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"727\" height=\"409\" class=\"wp-image-26159\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/07\/word-image-19905-11.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/07\/word-image-19905-11.png 727w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/07\/word-image-19905-11-300x169.png 300w\" sizes=\"auto, (max-width: 727px) 100vw, 727px\" \/><\/p>\n<p><strong>For \u201clibpython3.12-stdlib\u201d:<\/strong><\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">wget<\/span> http:<span class=\"sy0\">\/\/<\/span>ftp.de.debian.org<span class=\"sy0\">\/<\/span>debian<span class=\"sy0\">\/<\/span>pool<span class=\"sy0\">\/<\/span>main<span class=\"sy0\">\/<\/span>p<span class=\"sy0\">\/<\/span>python3.12<span class=\"sy0\">\/<\/span>libpython3.12-stdlib_3.12.2-<span class=\"nu0\">1<\/span>_amd64.deb<\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"729\" height=\"407\" class=\"wp-image-26161\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/07\/word-image-19905-12.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/07\/word-image-19905-12.png 729w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/07\/word-image-19905-12-300x167.png 300w\" sizes=\"auto, (max-width: 729px) 100vw, 729px\" \/><\/p>\n<p><strong>For \u201clibpython3.12-minimal\u201d:<\/strong><\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">wget<\/span> http:<span class=\"sy0\">\/\/<\/span>ftp.de.debian.org<span class=\"sy0\">\/<\/span>debian<span class=\"sy0\">\/<\/span>pool<span class=\"sy0\">\/<\/span>main<span class=\"sy0\">\/<\/span>p<span class=\"sy0\">\/<\/span>python3.12<span class=\"sy0\">\/<\/span>libpython3.12-minimal_3.12.2-<span class=\"nu0\">1<\/span>_amd64.deb<\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"730\" height=\"408\" class=\"wp-image-26163\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/07\/word-image-19905-13.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/07\/word-image-19905-13.png 730w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/07\/word-image-19905-13-300x168.png 300w\" sizes=\"auto, (max-width: 730px) 100vw, 730px\" \/><\/p>\n<p><strong>Note:<\/strong> Visit <a href=\"http:\/\/ftp.de.debian.org\/debian\/pool\/main\/p\/python3.12\/\">Debian FTP<\/a> to download the deb packages of Python and its dependencies.<\/p>\n<p>Now, install the downloaded <strong>Python <\/strong>dependencies on your system for Python\u2019s installation:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">sudo<\/span> apt <span class=\"kw2\">install<\/span> .<span class=\"sy0\">\/<\/span>libpython3.12-minimal_3.12.2-<span class=\"nu0\">1<\/span>_amd64.deb <span class=\"sy0\">&amp;&amp;<\/span> <span class=\"kw2\">sudo<\/span> apt <span class=\"kw2\">install<\/span> .<span class=\"sy0\">\/<\/span>libpython3.12-stdlib_3.12.2-<span class=\"nu0\">1<\/span>_amd64.deb <span class=\"sy0\">&amp;&amp;<\/span> <span class=\"kw2\">sudo<\/span> apt <span class=\"kw2\">install<\/span> .<span class=\"sy0\">\/<\/span>python3.12-minimal_3.12.2-<span class=\"nu0\">1<\/span>_amd64.deb<\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"736\" height=\"430\" class=\"wp-image-26165\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/07\/word-image-19905-14.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/07\/word-image-19905-14.png 736w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/07\/word-image-19905-14-300x175.png 300w\" sizes=\"auto, (max-width: 736px) 100vw, 736px\" \/><\/p>\n<p><strong>Step 2: Download the Deb Package of Python <\/strong><\/p>\n<p>Then, download the latest deb package of <strong>Python <\/strong>on your Debian system as:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">wget<\/span> http:<span class=\"sy0\">\/\/<\/span>ftp.de.debian.org<span class=\"sy0\">\/<\/span>debian<span class=\"sy0\">\/<\/span>pool<span class=\"sy0\">\/<\/span>main<span class=\"sy0\">\/<\/span>p<span class=\"sy0\">\/<\/span>python3.12<span class=\"sy0\">\/<\/span>python3.12_3.12.2-<span class=\"nu0\">1<\/span>_amd64.deb<\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"738\" height=\"385\" class=\"wp-image-26167\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/07\/word-image-19905-15.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/07\/word-image-19905-15.png 738w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/07\/word-image-19905-15-300x157.png 300w\" sizes=\"auto, (max-width: 738px) 100vw, 738px\" \/><\/p>\n<p><strong>Step 3: Install Python on Debian <\/strong><\/p>\n<p>Next, utilize the given command to install the downloaded deb package of Python:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">sudo<\/span> apt <span class=\"kw2\">install<\/span> .<span class=\"sy0\">\/<\/span>python3.12_3.12.2-<span class=\"nu0\">1<\/span>_amd64.deb<\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"737\" height=\"474\" class=\"wp-image-26175\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/07\/word-image-19905-16.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/07\/word-image-19905-16.png 737w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/07\/word-image-19905-16-300x193.png 300w\" sizes=\"auto, (max-width: 737px) 100vw, 737px\" \/><\/p>\n<p><strong>Step 4: Replace Python\u2019s Executable Path<\/strong><\/p>\n<p>After that, you need to replace the pre-installed <strong>Python <\/strong>path with the newly installed <strong>Python<\/strong>. You can check these paths using the \u201c<strong>which<\/strong>\u201d command as seen below:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">which<\/span> python3<br \/>\n<span class=\"kw2\">which<\/span> python3.12<\/div><\/div>\n<p>The output shows the paths of the system\u2019s recognizable <strong>Python <\/strong>and newly installed <strong>Python<\/strong>:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"735\" height=\"181\" class=\"wp-image-26177\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/07\/word-image-19905-17.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/07\/word-image-19905-17.png 735w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/07\/word-image-19905-17-300x74.png 300w\" sizes=\"auto, (max-width: 735px) 100vw, 735px\" \/><\/p>\n<p>Remove the system\u2019s pre-installed <strong>Python <\/strong>path as:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">sudo<\/span> <span class=\"kw2\">rm<\/span> <span class=\"sy0\">\/<\/span>usr<span class=\"sy0\">\/<\/span>bin<span class=\"sy0\">\/<\/span>python3<\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"737\" height=\"96\" class=\"wp-image-26180\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/07\/word-image-19905-18.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/07\/word-image-19905-18.png 737w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/07\/word-image-19905-18-300x39.png 300w\" sizes=\"auto, (max-width: 737px) 100vw, 737px\" \/><\/p>\n<p>Replace the default \u201c<strong>Python3<\/strong>\u201d executable with the newly installed \u201c<strong>Python3.12<\/strong>\u201d by creating the symbolic link using the below-mentioned command:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">sudo<\/span> <span class=\"kw2\">ln<\/span> <span class=\"re5\">-s<\/span> <span class=\"sy0\">\/<\/span>usr<span class=\"sy0\">\/<\/span>bin<span class=\"sy0\">\/<\/span>python3.12 <span class=\"sy0\">\/<\/span>usr<span class=\"sy0\">\/<\/span>bin<span class=\"sy0\">\/<\/span>python3<\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"736\" height=\"89\" class=\"wp-image-26181\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/07\/word-image-19905-19.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/07\/word-image-19905-19.png 736w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/07\/word-image-19905-19-300x36.png 300w\" sizes=\"auto, (max-width: 736px) 100vw, 736px\" \/><\/p>\n<p><strong>Step 5: Verification<\/strong><\/p>\n<p>Finally, check the <strong>Python <\/strong>version to verify its installation:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\">python3 <span class=\"re5\">--version<\/span><\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"739\" height=\"115\" class=\"wp-image-26182\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/07\/word-image-19905-20.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/07\/word-image-19905-20.png 739w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/07\/word-image-19905-20-300x47.png 300w\" sizes=\"auto, (max-width: 739px) 100vw, 739px\" \/><\/p>\n<h3><a id=\"post-19905-_chp5xu6rylg5\"><\/a>Method 4: Install Python on Debian 12 Via Pyenv<\/h3>\n<p>Pyenv enables users to manage\/handle <strong>Python\u2019s <\/strong>multiple versions on their system. You can install the desired <strong>Python <\/strong>version on your Debian system through Pyenv and easily switch between them. Here are the steps:<\/p>\n<p><strong>Step 1: Install Dependencies<\/strong><\/p>\n<p>First, make sure you have all the necessary dependencies installed on the Debian system. Run the below-listed command to install them:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">sudo<\/span> apt <span class=\"kw2\">install<\/span> <span class=\"kw2\">git<\/span> libssl-dev libreadline-dev libsqlite3-dev llvm libncursesw5-dev tk-dev libffi-dev xz-utils zlib1g-dev libbz2-dev liblzma-dev libncurses5-dev <span class=\"re5\">-y<\/span><\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"720\" height=\"297\" class=\"wp-image-26183\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/07\/word-image-19905-21.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/07\/word-image-19905-21.png 720w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/07\/word-image-19905-21-300x124.png 300w\" sizes=\"auto, (max-width: 720px) 100vw, 720px\" \/><\/p>\n<p><strong>Step 2: Install Pyenv on the System <\/strong><\/p>\n<p>Then, utilize the given command to download Pyenv installer and install Pyenv on your Debian system:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\">curl <span class=\"re5\">-L<\/span> https:<span class=\"sy0\">\/\/<\/span>github.com<span class=\"sy0\">\/<\/span>pyenv<span class=\"sy0\">\/<\/span>pyenv-installer<span class=\"sy0\">\/<\/span>raw<span class=\"sy0\">\/<\/span>master<span class=\"sy0\">\/<\/span>bin<span class=\"sy0\">\/<\/span>pyenv-installer <span class=\"sy0\">|<\/span> <span class=\"kw2\">bash<\/span><\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"737\" height=\"426\" class=\"wp-image-26184\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/07\/word-image-19905-22.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/07\/word-image-19905-22.png 737w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/07\/word-image-19905-22-300x173.png 300w\" sizes=\"auto, (max-width: 737px) 100vw, 737px\" \/><\/p>\n<p><strong>Step 3: Configure Pyenv on Debian 12<\/strong><\/p>\n<p>Now, you need to open the \u201c<strong>.bashrc<\/strong>\u201d file in the editor to configure Pyenv on your system:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">nano<\/span> ~<span class=\"sy0\">\/<\/span>.bashrc<\/div><\/div>\n<p>In the\u201c<strong>.bashrc<\/strong>\u201d file, add the following lines to set the path for Pyenv installation:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw3\">export<\/span> <span class=\"re2\">PYENV_ROOT<\/span>=<span class=\"st0\">&quot;<span class=\"es2\">$HOME<\/span>\/.pyenv&quot;<\/span><br \/>\n<span class=\"kw3\">export<\/span> <span class=\"re2\">PATH<\/span>=<span class=\"st0\">&quot;<span class=\"es2\">$PYENV_ROOT<\/span>\/bin:<span class=\"es2\">$PATH<\/span>&quot;<\/span><br \/>\n<span class=\"kw3\">eval<\/span> <span class=\"st0\">&quot;<span class=\"es4\">$(pyenv init --path)<\/span>&quot;<\/span><\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"721\" height=\"428\" class=\"wp-image-26185\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/07\/word-image-19905-23.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/07\/word-image-19905-23.png 721w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/07\/word-image-19905-23-300x178.png 300w\" sizes=\"auto, (max-width: 721px) 100vw, 721px\" \/><\/p>\n<p>Save the changes using the \u201cCTRL + X\u201d keys and then close the file.<\/p>\n<p>After that, run the given command to implement changes:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw3\">source<\/span> ~<span class=\"sy0\">\/<\/span>.bashrc<\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"719\" height=\"92\" class=\"wp-image-26186\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/07\/word-image-19905-24.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/07\/word-image-19905-24.png 719w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/07\/word-image-19905-24-300x38.png 300w\" sizes=\"auto, (max-width: 719px) 100vw, 719px\" \/><\/p>\n<p><strong>Step 4: Install Python Using Pyenv<\/strong><\/p>\n<p>You can check the available <strong>Python <\/strong>versions using \u201c<strong>pyenv install -l<\/strong>\u201d and choose the desired version that you want to install. Finally, install the specific <strong>Python <\/strong>version using the \u201c<strong>pyenv install<\/strong>\u201d command followed by the required version:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\">pyenv <span class=\"kw2\">install<\/span> 3.12.1<\/div><\/div>\n<p>Here, we have installed the \u201c<strong>3.12.1<\/strong>\u201d version of <strong>Python<\/strong>:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"720\" height=\"177\" class=\"wp-image-26187\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/07\/word-image-19905-25.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/07\/word-image-19905-25.png 720w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/07\/word-image-19905-25-300x74.png 300w\" sizes=\"auto, (max-width: 720px) 100vw, 720px\" \/><\/p>\n<p><strong>Step 5: Make Python Global<\/strong><\/p>\n<p>You can also make the installed Python version global to make it the default version used in your system:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\">pyenv global 3.12.1<\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"719\" height=\"95\" class=\"wp-image-26188\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/07\/word-image-19905-26.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/07\/word-image-19905-26.png 719w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/07\/word-image-19905-26-300x40.png 300w\" sizes=\"auto, (max-width: 719px) 100vw, 719px\" \/><\/p>\n<p><strong>Step 6: Verification <\/strong><\/p>\n<p>To verify whether the desired Python version has been installed or the system or not, run the given command:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\">python <span class=\"re5\">--version<\/span><\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"721\" height=\"117\" class=\"wp-image-26189\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/07\/word-image-19905-27.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/07\/word-image-19905-27.png 721w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/07\/word-image-19905-27-300x49.png 300w\" sizes=\"auto, (max-width: 721px) 100vw, 721px\" \/><\/p>\n<h2><a id=\"post-19905-_24uoiqegd137\"><\/a>How to Run Python Scripts on Debian 12<\/h2>\n<p>Once the desired version of Python is installed on the Debian system, you can use it by accessing the Python Shell. To initiate the Python Shell, type out the below-listed command:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\">python3<\/div><\/div>\n<p>It can be seen that the Python shell has been started:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"738\" height=\"134\" class=\"wp-image-26190\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/07\/word-image-19905-28.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/07\/word-image-19905-28.png 738w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/07\/word-image-19905-28-300x54.png 300w\" sizes=\"auto, (max-width: 738px) 100vw, 738px\" \/><\/p>\n<p>Now, you can execute different Python scripts. For example, we are printing the following string:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\">print<span class=\"br0\">&#40;<\/span><span class=\"st0\">&quot;Hello LinuxWays&quot;<\/span><span class=\"br0\">&#41;<\/span><\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"738\" height=\"113\" class=\"wp-image-26191\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/07\/word-image-19905-29.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/07\/word-image-19905-29.png 738w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/07\/word-image-19905-29-300x46.png 300w\" sizes=\"auto, (max-width: 738px) 100vw, 738px\" \/><\/p>\n<p>If you want to leave the Python shell, utilize the provided command:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw3\">exit<\/span><span class=\"br0\">&#40;<\/span><span class=\"br0\">&#41;<\/span><\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"740\" height=\"108\" class=\"wp-image-26192\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/07\/word-image-19905-30.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/07\/word-image-19905-30.png 740w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/07\/word-image-19905-30-300x44.png 300w\" sizes=\"auto, (max-width: 740px) 100vw, 740px\" \/><\/p>\n<h2><a id=\"post-19905-_39h5o2finm5\"><\/a>How to Fix Debian 12 System If Python is Removed<\/h2>\n<p>Removing or uninstalling <strong>Python <\/strong>from the Debian 12 system is <strong>NOT suggested <\/strong>because many system tools or packages rely on <strong>Python<\/strong>. However, if you still want to uninstall it, use the below-listed command to remove it:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">sudo<\/span> apt autoremove python3<span class=\"sy0\">*<\/span> <span class=\"re5\">-y<\/span><\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"736\" height=\"404\" class=\"wp-image-26193\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/07\/word-image-19905-31.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/07\/word-image-19905-31.png 736w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/07\/word-image-19905-31-300x165.png 300w\" sizes=\"auto, (max-width: 736px) 100vw, 736px\" \/><\/p>\n<p>If you have installed <strong>Python <\/strong>from the source code, you can remove it as:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">sudo<\/span> <span class=\"kw2\">find<\/span> <span class=\"sy0\">\/<\/span>usr<span class=\"sy0\">\/<\/span><span class=\"kw3\">local<\/span> <span class=\"re5\">-depth<\/span> <span class=\"re5\">-iname<\/span> <span class=\"st_h\">'python*'<\/span> <span class=\"re5\">-exec<\/span> <span class=\"kw2\">rm<\/span> <span class=\"re5\">-rf<\/span> <span class=\"br0\">&#123;<\/span><span class=\"br0\">&#125;<\/span> \\;<\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"722\" height=\"175\" class=\"wp-image-26194\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/07\/word-image-19905-32.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/07\/word-image-19905-32.png 722w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/07\/word-image-19905-32-300x73.png 300w\" sizes=\"auto, (max-width: 722px) 100vw, 722px\" \/><\/p>\n<p>As we know many system tools, such as package managers (apt, yum), and desktop environments including GNOME and KDE Plasma, etc rely on <strong>Python<\/strong>. Therefore, removing <strong>Python <\/strong>can cause instability and unexpected behavior in your system, such as you will also not be able to use the Desktop to access your system. If you encounter such issues, check out the following instructions to resolve them:<\/p>\n<p>First, reboot your system and you will see the command-line interface:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"751\" height=\"229\" class=\"wp-image-26195\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/07\/word-image-19905-33.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/07\/word-image-19905-33.png 751w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/07\/word-image-19905-33-300x91.png 300w\" sizes=\"auto, (max-width: 751px) 100vw, 751px\" \/><\/p>\n<p>Here, enter your Debian username and password to log in to your system:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"748\" height=\"238\" class=\"wp-image-26196\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/07\/word-image-19905-34.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/07\/word-image-19905-34.png 748w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/07\/word-image-19905-34-300x95.png 300w\" sizes=\"auto, (max-width: 748px) 100vw, 748px\" \/><\/p>\n<p>Then, reload the DHCP client through the below-listed command to enable the internet on your system:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">sudo<\/span> dhclient <span class=\"re5\">-r<\/span><\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"711\" height=\"66\" class=\"wp-image-26197\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/07\/word-image-19905-35.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/07\/word-image-19905-35.png 711w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/07\/word-image-19905-35-300x28.png 300w\" sizes=\"auto, (max-width: 711px) 100vw, 711px\" \/><\/p>\n<p>After that, refresh the network configuration by requesting a new IP address from the DHCP server through the given command:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">sudo<\/span> dhclient<\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"724\" height=\"56\" class=\"wp-image-26198\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/07\/word-image-19905-36.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/07\/word-image-19905-36.png 724w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/07\/word-image-19905-36-300x23.png 300w\" sizes=\"auto, (max-width: 724px) 100vw, 724px\" \/><\/p>\n<p>Next, utilize the provided command for finding missing dependencies and fixing broken packages:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">sudo<\/span> apt <span class=\"kw2\">install<\/span> <span class=\"re5\">-f<\/span><\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"714\" height=\"102\" class=\"wp-image-26199\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/07\/word-image-19905-37.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/07\/word-image-19905-37.png 714w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/07\/word-image-19905-37-300x43.png 300w\" sizes=\"auto, (max-width: 714px) 100vw, 714px\" \/><\/p>\n<p>Finally, install the desktop environment on your Debian 12 system as:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">sudo<\/span> apt <span class=\"kw2\">install<\/span> task-gnome-desktop <span class=\"re5\">-y<\/span><\/div><\/div>\n<p>Subsequently, the missing dependencies including <strong>Python <\/strong>will be installed and the GNOME login menu will appear as seen below:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"770\" height=\"506\" class=\"wp-image-26200\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/07\/word-image-19905-38.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/07\/word-image-19905-38.png 770w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/07\/word-image-19905-38-300x197.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/07\/word-image-19905-38-768x505.png 768w\" sizes=\"auto, (max-width: 770px) 100vw, 770px\" \/><\/p>\n<p>That was all about installing and managing <strong>Python <\/strong>on the Debian 12 system.<\/p>\n<h2><a id=\"post-19905-_drblte4hm9jg\"><\/a>Final Thoughts<\/h2>\n<p>In Debian systems, <strong>Python <\/strong>is already pre-installed on them. However, you can still install <strong>Python <\/strong>on Debian 12 via the official Debian repository, source code, or through the Pyenv method. The default Debian repository provides <strong>Python\u2019s <\/strong>outdated version. Therefore, if you want to install the latest or a particular version of Python, you should install it through source code or Pyenv. This guide has demonstrated the efficient methods for Python installation on Debian 12 systems.<\/p>","protected":false},"excerpt":{"rendered":"<p>Python is one of the most used programming languages in the world because of its simplicity, usability, and the number of packages it has. <\/p>","protected":false},"author":112,"featured_media":19913,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[],"class_list":["post-19905","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-debian"],"_links":{"self":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts\/19905","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/users\/112"}],"replies":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/comments?post=19905"}],"version-history":[{"count":1,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts\/19905\/revisions"}],"predecessor-version":[{"id":26170,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts\/19905\/revisions\/26170"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/media\/19913"}],"wp:attachment":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/media?parent=19905"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/categories?post=19905"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/tags?post=19905"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}