{"id":2138,"date":"2024-07-30T12:30:00","date_gmt":"2024-07-30T17:30:00","guid":{"rendered":"https:\/\/linuxhostsupport.com\/blog\/?p=2138"},"modified":"2024-06-25T10:55:14","modified_gmt":"2024-06-25T15:55:14","slug":"how-to-install-python-on-debian-12","status":"publish","type":"post","link":"https:\/\/linuxhostsupport.com\/blog\/how-to-install-python-on-debian-12\/","title":{"rendered":"How to Install Python on Debian 12"},"content":{"rendered":"\n<div id=\"linux-1969866551\" class=\"linux-before-1st-paragraph linux-entity-placement\" style=\"margin-top: 15px;margin-bottom: 15px;\"><a href=\"https:\/\/www.rosehosting.com\/managed-vps-hosting\/?mtm_campaign=blogs&#038;mtm_source=lhs&#038;mtm_medium=blog&#038;mtm_content=managed-vps&#038;mtm_cid=1339&#038;mtm_placement=inline\" aria-label=\"Untitled\"><img src=\"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2020\/12\/1340090_NVMeGoogleAds_728x90_041322.jpg\" alt=\"\"  srcset=\"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2020\/12\/1340090_NVMeGoogleAds_728x90_041322.jpg 728w, https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2020\/12\/1340090_NVMeGoogleAds_728x90_041322-300x37.jpg 300w\" sizes=\"(max-width: 728px) 100vw, 728px\" width=\"728\" height=\"90\"  style=\"display: inline-block;\" \/><\/a><\/div><p>Python is a versatile programming language that can run on almost any system architecture, from web development to machine learning, and can be used for applications in various fields. Besides its versatility, Python is also relatively easy for beginners to learn, making it one of the most popular programming languages. This tutorial will show you how to install Python on Debian 12.<\/p>\n\n\n\n<!--more-->\n\n\n\n<h2 class=\"wp-block-heading\">Prerequisites<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>A Debian 12 VPS<\/li>\n\n\n\n<li>SSH root access or a user with sudo privileges is required<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">Conventions<\/h3>\n\n\n\n<pre class=\"wp-block-preformatted\"># \u2013 given commands should be executed with root privileges either directly as a root user or by use of sudo command<br>$ \u2013 given commands should be executed as a regular user<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Login to VPS and Update the System<\/h2>\n\n\n\n<p>First of all, we need to log in to our Debian 12 VPS through SSH:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">ssh root@IP_Address -p Port_number<\/pre>\n\n\n\n<p>Replace &#8220;root&#8221; with a user with sudo privileges or root if necessary. Replace &#8220;IP_Address&#8221; and &#8220;Port_Number&#8221; with your server&#8217;s IP address and SSH port number. Next, let&#8217;s make sure that we&#8217;re on Debian 12. You can do that like this:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"># lsb_release -a<\/pre>\n\n\n\n<p>The command should return an output similar to this:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">No LSB modules are available.<br>Distributor ID: Debian<br>Description: Debian GNU\/Linux 12 (bookworm)<br>Release: 12<br>Codename: bookworm<\/pre>\n\n\n\n<p>Before starting, you have to make sure that all Debian packages installed on the server are up to date. You can do this by running the following commands:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"># apt update -y<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Install Python from Source<\/h2>\n\n\n\n<p>Debian 12 ships Python 3.11 as the default version. You can verify this by executing the command below:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"># apt show python3<\/pre>\n\n\n\n<p>The command will return an output like this:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">Package: python3<br>Version: 3.11.2-1+b1<br>Priority: optional<br>Section: python<br>Source: python3-defaults (3.11.2-1)<br>Maintainer: Matthias Klose <a href=\"mailto:doko@debian.org\">doko@debian.org<\/a><br>Installed-Size: 82.9 kB<br>Provides: python3-profiler, python3-supported-max (= 3.11), python3-supported-min (= 3.11)<br>Pre-Depends: python3-minimal (= 3.11.2-1+b1)<br>Depends: python3.11 (&gt;= 3.11.2-1~), libpython3-stdlib (= 3.11.2-1+b1)<br>Suggests: python3-doc (&gt;= 3.11.2-1+b1), python3-tk (&gt;= 3.11.2-1~), python3-venv (&gt;= 3.11.2-1+b1)<br>Replaces: python3-minimal (&lt;&lt; 3.1.2-2)<br>Homepage: https:\/\/www.python.org\/<br>Tag: devel::interpreter, devel::lang:python, devel::library,<br>implemented-in::c, implemented-in::python, role::devel-lib,<br>role::program, role::shared-lib<br>Download-Size: 26.3 kB<br>APT-Manual-Installed: no<br>APT-Sources: http:\/\/deb.debian.org\/debian bookworm\/main amd64 Packages<br>Description: interactive high-level object-oriented language (default python3 version)<br>Python, the high-level, interactive object oriented language,<br>includes an extensive class library with lots of goodies for<br>network programming, system administration, sounds and graphics.<br>.<br>This package is a dependency package, which depends on Debian's default<br>Python 3 version (currently v3.11).<\/pre>\n\n\n\n<p>Ubuntu has deadsnake&#8217;s PPA, which allows us to install multiple Python versions on an Ubuntu machine. Although we can install it on our Debian 12 machine using the same Deadsnake&#8217;s PPA with a little modification, it is not recommended. So, to install another version of Python 3 on a Debian 12 system, we need to install it from the source. We will show you how to install it.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Install Dependencies<\/h3>\n\n\n\n<p>Let&#8217;s install the dependencies by invoking this command below.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"># apt install openssl \\<br>    build-essential \\<br>    curl \\<br>    gcc \\<br>    libbz2-dev \\<br>    libev-dev \\<br>    libffi-dev \\<br>    libgdbm-dev \\<br>    liblzma-dev \\<br>    libncurses-dev \\<br>    libreadline-dev \\<br>    libsqlite3-dev \\<br>    libssl-dev \\<br>    make \\<br>    tk-dev \\<br>    wget \\<br>    git \\<br>    zlib1g-dev<\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Download and Install Python 3.12.3<\/h3>\n\n\n\n<p>For example, you want to install Python 3.12. So, you need to go to <a href=\"https:\/\/www.python.org\/downloads\/\" target=\"_blank\" rel=\"noreferrer noopener\">Python download page<\/a> and get the link. In this example, you want to download <a href=\"https:\/\/www.python.org\/downloads\/release\/python-3124\/\" target=\"_blank\" rel=\"noreferrer noopener\">Python 3.12.4<\/a>.<\/p>\n\n\n\n<p>Now, after getting the download link, let&#8217;s download it.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"># cd \/tmp<br># wget https:\/\/www.python.org\/ftp\/python\/3.12.3\/Python-3.12.3.tgz<\/pre>\n\n\n\n<p>Then, extract the downloaded file and go to the directory Python-3.12.3<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"># tar zxf Python-3.12.3.tgz<br># cd Python-3.12.3<\/pre>\n\n\n\n<p>Finally, we can install it.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"># .\/configure --prefix=\/usr\/local<br># make<br># make install<\/pre>\n\n\n\n<p>That&#8217;s it \u2014 you have Python 3.12 now. It&#8217;s installed at \/usr\/local\/bin\/python3.12. To install multiple versions, repeat the steps and specify the versions you want to install.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Install Python using pyenv<\/h2>\n\n\n\n<p>Before installing pyenv, we need to get the latest version of pyenv frm GitHub. Let&#8217;s execute this command below.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"># git clone https:\/\/github.com\/pyenv\/pyenv.git ~\/.pyenv<\/pre>\n\n\n\n<p>Now, we need to edit our ~\/.bashrc file<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"># nano ~\/.bashrc<\/pre>\n\n\n\n<p>and add these lines to it.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">export PYENV_ROOT=\"$HOME\/.pyenv\"<br>export PATH=\"$PYENV_ROOT\/bin:$PATH\"<br>eval \"$(pyenv init --path)\"<\/pre>\n\n\n\n<p>Save the file and exit from the editor. To apply the changes, we can source the file.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"># source ~\/.bashrc<\/pre>\n\n\n\n<p>At this point, we can use pyenv. Run this command below to see the available Python versions to install.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"># pyenv install -l<\/pre>\n\n\n\n<p>Let&#8217;s say we are going to install Python 3.10, we can execute this command:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"># pyenv install 3.10<\/pre>\n\n\n\n<p>Wait until it finishes installing Python. Once completed, you can run this command to check the available version.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"># pyenv versions<\/pre>\n\n\n\n<pre class=\"wp-block-preformatted\">* system (set by \/root\/.pyenv\/version)<br>3.10.14<\/pre>\n\n\n\n<p>As your screen shows, Python 3.10.14 has been installed but is not activated. The one listed there with an asterisk (*) is currently the active one. The asterisk indicates the currently active version and refers to the system-wide Python version.<\/p>\n\n\n\n<p>To activate Python 3.10.14 globally, let&#8217;s run this command<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"># pyenv global 3.10.14<\/pre>\n\n\n\n<p>That&#8217;s it. Python 3.10.14 is active now. You can verify it by running the command<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"># python3 --version<\/pre>\n\n\n\n<p>It will return an output like this:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">Python 3.10.14<\/pre>\n\n\n\n<p>Besides activating it globally, you can also use it locally. Use this command instead:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"># pyenv local 3.10.14<\/pre>\n\n\n\n<p>You can also install a virtual environment when using pyenv. The command is similar to the one you usually use.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"># python -m venv [VENV-NAME]<\/pre>\n\n\n\n<p>That&#8217;s it all. You have learned how to install Python on Debian 12.<\/p>\n\n\n\n<p>Of course, you don\u2019t have to install Python on Debian 12 yourself if you use one of our <a href=\"https:\/\/linuxhostsupport.com\/monthly-server-management.html\" target=\"_blank\" rel=\"noreferrer noopener\">server management plans<\/a>. This means that you can ask our admins to do the installation for you, sit back, and relax. Our admins will install and set up Python on Debian 12 immediately without any additional fee, along with any helpful configurations and optimizations we can do for you. Managing Python is not just about the installation, though. We can also help you optimize your Python installation if you have an active service with us.<\/p>\n\n\n\n<p>If you liked this post on installing Python on Debian 12, please share it with your friends on social media or leave a comment below. Thanks.<\/p><div id=\"linux-1064991642\" class=\"linux-after-8th-paragraph linux-entity-placement\" style=\"margin-top: 15px;margin-bottom: 15px;\"><a href=\"https:\/\/www.rosehosting.com\/managed-vps-hosting\/?mtm_campaign=blogs&#038;mtm_source=lhs&#038;mtm_medium=blog&#038;mtm_content=managed-vps&#038;mtm_cid=1340&#038;mtm_placement=inline\" aria-label=\"Untitled\"><img src=\"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2020\/12\/1340095_VPSGoogleAds_728x90_042622.jpg\" alt=\"\"  srcset=\"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2020\/12\/1340095_VPSGoogleAds_728x90_042622.jpg 728w, https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2020\/12\/1340095_VPSGoogleAds_728x90_042622-300x37.jpg 300w\" sizes=\"(max-width: 728px) 100vw, 728px\" width=\"728\" height=\"90\"  style=\"display: inline-block;\" \/><\/a><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Python is a versatile programming language that can run on almost any system architecture, from web development to machine learning, and can be used for applications in various fields. Besides its versatility, Python is also relatively easy for beginners to learn, making it one of the most popular programming languages. This tutorial will show you [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":2159,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[201,2],"tags":[28,280,199,13],"class_list":["post-2138","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-debian","category-tutorials","tag-debian","tag-debian-12","tag-how-to-install","tag-python"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.2 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to Install Python on Debian 12 | LinuxHostSupport<\/title>\n<meta name=\"description\" content=\"Learn how to Install Python on Debian 12, or sign up to one of our server management plans and have our Linux experts do it all for you.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/linuxhostsupport.com\/blog\/how-to-install-python-on-debian-12\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Install Python on Debian 12 | LinuxHostSupport\" \/>\n<meta property=\"og:description\" content=\"Learn how to Install Python on Debian 12, or sign up to one of our server management plans and have our Linux experts do it all for you.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/linuxhostsupport.com\/blog\/how-to-install-python-on-debian-12\/\" \/>\n<meta property=\"og:site_name\" content=\"LinuxHostSupport\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/linuxhostsupport\" \/>\n<meta property=\"article:published_time\" content=\"2024-07-30T17:30:00+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2024\/07\/how-to-install-python-on-debian-12.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"742\" \/>\n\t<meta property=\"og:image:height\" content=\"410\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@lnxhostsupport\" \/>\n<meta name=\"twitter:site\" content=\"@lnxhostsupport\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/linuxhostsupport.com\/blog\/how-to-install-python-on-debian-12\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/linuxhostsupport.com\/blog\/how-to-install-python-on-debian-12\/\"},\"author\":{\"name\":\"admin\",\"@id\":\"https:\/\/linuxhostsupport.com\/blog\/#\/schema\/person\/53a9571ea078cdf350137a1e97423cfb\"},\"headline\":\"How to Install Python on Debian 12\",\"datePublished\":\"2024-07-30T17:30:00+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/linuxhostsupport.com\/blog\/how-to-install-python-on-debian-12\/\"},\"wordCount\":719,\"commentCount\":0,\"image\":{\"@id\":\"https:\/\/linuxhostsupport.com\/blog\/how-to-install-python-on-debian-12\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2024\/07\/how-to-install-python-on-debian-12.jpg\",\"keywords\":[\"debian\",\"debian 12\",\"how to install\",\"python\"],\"articleSection\":[\"Debian\",\"Tutorials\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/linuxhostsupport.com\/blog\/how-to-install-python-on-debian-12\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/linuxhostsupport.com\/blog\/how-to-install-python-on-debian-12\/\",\"url\":\"https:\/\/linuxhostsupport.com\/blog\/how-to-install-python-on-debian-12\/\",\"name\":\"How to Install Python on Debian 12 | LinuxHostSupport\",\"isPartOf\":{\"@id\":\"https:\/\/linuxhostsupport.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/linuxhostsupport.com\/blog\/how-to-install-python-on-debian-12\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/linuxhostsupport.com\/blog\/how-to-install-python-on-debian-12\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2024\/07\/how-to-install-python-on-debian-12.jpg\",\"datePublished\":\"2024-07-30T17:30:00+00:00\",\"author\":{\"@id\":\"https:\/\/linuxhostsupport.com\/blog\/#\/schema\/person\/53a9571ea078cdf350137a1e97423cfb\"},\"description\":\"Learn how to Install Python on Debian 12, or sign up to one of our server management plans and have our Linux experts do it all for you.\",\"breadcrumb\":{\"@id\":\"https:\/\/linuxhostsupport.com\/blog\/how-to-install-python-on-debian-12\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/linuxhostsupport.com\/blog\/how-to-install-python-on-debian-12\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/linuxhostsupport.com\/blog\/how-to-install-python-on-debian-12\/#primaryimage\",\"url\":\"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2024\/07\/how-to-install-python-on-debian-12.jpg\",\"contentUrl\":\"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2024\/07\/how-to-install-python-on-debian-12.jpg\",\"width\":742,\"height\":410,\"caption\":\"How to Install Python on Debian 12\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/linuxhostsupport.com\/blog\/how-to-install-python-on-debian-12\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/linuxhostsupport.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Install Python on Debian 12\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/linuxhostsupport.com\/blog\/#website\",\"url\":\"https:\/\/linuxhostsupport.com\/blog\/\",\"name\":\"LinuxHostSupport\",\"description\":\"Linux Tutorials and Guides\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/linuxhostsupport.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/linuxhostsupport.com\/blog\/#\/schema\/person\/53a9571ea078cdf350137a1e97423cfb\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/secure.gravatar.com\/avatar\/ed83c63a34114218f977e1f913be03906d17c7d9c800788fcac345f5edaf6cfa?s=96&d=mm&r=g\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/ed83c63a34114218f977e1f913be03906d17c7d9c800788fcac345f5edaf6cfa?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/ed83c63a34114218f977e1f913be03906d17c7d9c800788fcac345f5edaf6cfa?s=96&d=mm&r=g\",\"caption\":\"admin\"},\"url\":\"https:\/\/linuxhostsupport.com\/blog\/author\/r0s3admin\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Install Python on Debian 12 | LinuxHostSupport","description":"Learn how to Install Python on Debian 12, or sign up to one of our server management plans and have our Linux experts do it all for you.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/linuxhostsupport.com\/blog\/how-to-install-python-on-debian-12\/","og_locale":"en_US","og_type":"article","og_title":"How to Install Python on Debian 12 | LinuxHostSupport","og_description":"Learn how to Install Python on Debian 12, or sign up to one of our server management plans and have our Linux experts do it all for you.","og_url":"https:\/\/linuxhostsupport.com\/blog\/how-to-install-python-on-debian-12\/","og_site_name":"LinuxHostSupport","article_publisher":"https:\/\/www.facebook.com\/linuxhostsupport","article_published_time":"2024-07-30T17:30:00+00:00","og_image":[{"width":742,"height":410,"url":"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2024\/07\/how-to-install-python-on-debian-12.jpg","type":"image\/jpeg"}],"author":"admin","twitter_card":"summary_large_image","twitter_creator":"@lnxhostsupport","twitter_site":"@lnxhostsupport","twitter_misc":{"Written by":"admin","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/linuxhostsupport.com\/blog\/how-to-install-python-on-debian-12\/#article","isPartOf":{"@id":"https:\/\/linuxhostsupport.com\/blog\/how-to-install-python-on-debian-12\/"},"author":{"name":"admin","@id":"https:\/\/linuxhostsupport.com\/blog\/#\/schema\/person\/53a9571ea078cdf350137a1e97423cfb"},"headline":"How to Install Python on Debian 12","datePublished":"2024-07-30T17:30:00+00:00","mainEntityOfPage":{"@id":"https:\/\/linuxhostsupport.com\/blog\/how-to-install-python-on-debian-12\/"},"wordCount":719,"commentCount":0,"image":{"@id":"https:\/\/linuxhostsupport.com\/blog\/how-to-install-python-on-debian-12\/#primaryimage"},"thumbnailUrl":"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2024\/07\/how-to-install-python-on-debian-12.jpg","keywords":["debian","debian 12","how to install","python"],"articleSection":["Debian","Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/linuxhostsupport.com\/blog\/how-to-install-python-on-debian-12\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/linuxhostsupport.com\/blog\/how-to-install-python-on-debian-12\/","url":"https:\/\/linuxhostsupport.com\/blog\/how-to-install-python-on-debian-12\/","name":"How to Install Python on Debian 12 | LinuxHostSupport","isPartOf":{"@id":"https:\/\/linuxhostsupport.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/linuxhostsupport.com\/blog\/how-to-install-python-on-debian-12\/#primaryimage"},"image":{"@id":"https:\/\/linuxhostsupport.com\/blog\/how-to-install-python-on-debian-12\/#primaryimage"},"thumbnailUrl":"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2024\/07\/how-to-install-python-on-debian-12.jpg","datePublished":"2024-07-30T17:30:00+00:00","author":{"@id":"https:\/\/linuxhostsupport.com\/blog\/#\/schema\/person\/53a9571ea078cdf350137a1e97423cfb"},"description":"Learn how to Install Python on Debian 12, or sign up to one of our server management plans and have our Linux experts do it all for you.","breadcrumb":{"@id":"https:\/\/linuxhostsupport.com\/blog\/how-to-install-python-on-debian-12\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/linuxhostsupport.com\/blog\/how-to-install-python-on-debian-12\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/linuxhostsupport.com\/blog\/how-to-install-python-on-debian-12\/#primaryimage","url":"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2024\/07\/how-to-install-python-on-debian-12.jpg","contentUrl":"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2024\/07\/how-to-install-python-on-debian-12.jpg","width":742,"height":410,"caption":"How to Install Python on Debian 12"},{"@type":"BreadcrumbList","@id":"https:\/\/linuxhostsupport.com\/blog\/how-to-install-python-on-debian-12\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/linuxhostsupport.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How to Install Python on Debian 12"}]},{"@type":"WebSite","@id":"https:\/\/linuxhostsupport.com\/blog\/#website","url":"https:\/\/linuxhostsupport.com\/blog\/","name":"LinuxHostSupport","description":"Linux Tutorials and Guides","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/linuxhostsupport.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/linuxhostsupport.com\/blog\/#\/schema\/person\/53a9571ea078cdf350137a1e97423cfb","name":"admin","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/ed83c63a34114218f977e1f913be03906d17c7d9c800788fcac345f5edaf6cfa?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/ed83c63a34114218f977e1f913be03906d17c7d9c800788fcac345f5edaf6cfa?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/ed83c63a34114218f977e1f913be03906d17c7d9c800788fcac345f5edaf6cfa?s=96&d=mm&r=g","caption":"admin"},"url":"https:\/\/linuxhostsupport.com\/blog\/author\/r0s3admin\/"}]}},"_links":{"self":[{"href":"https:\/\/linuxhostsupport.com\/blog\/wp-json\/wp\/v2\/posts\/2138","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/linuxhostsupport.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/linuxhostsupport.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/linuxhostsupport.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/linuxhostsupport.com\/blog\/wp-json\/wp\/v2\/comments?post=2138"}],"version-history":[{"count":3,"href":"https:\/\/linuxhostsupport.com\/blog\/wp-json\/wp\/v2\/posts\/2138\/revisions"}],"predecessor-version":[{"id":2148,"href":"https:\/\/linuxhostsupport.com\/blog\/wp-json\/wp\/v2\/posts\/2138\/revisions\/2148"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/linuxhostsupport.com\/blog\/wp-json\/wp\/v2\/media\/2159"}],"wp:attachment":[{"href":"https:\/\/linuxhostsupport.com\/blog\/wp-json\/wp\/v2\/media?parent=2138"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linuxhostsupport.com\/blog\/wp-json\/wp\/v2\/categories?post=2138"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linuxhostsupport.com\/blog\/wp-json\/wp\/v2\/tags?post=2138"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}