{"id":47096,"date":"2023-11-27T12:30:00","date_gmt":"2023-11-27T18:30:00","guid":{"rendered":"https:\/\/www.rosehosting.com\/blog\/?p=47096"},"modified":"2023-10-24T03:42:37","modified_gmt":"2023-10-24T08:42:37","slug":"how-to-install-flask-on-debian-12","status":"publish","type":"post","link":"https:\/\/www.rosehosting.com\/blog\/how-to-install-flask-on-debian-12\/","title":{"rendered":"How to Install Flask on Debian 12"},"content":{"rendered":"<div id=\"bsf_rt_marker\"><\/div>\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"1024\" height=\"576\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2023\/10\/how-to-install-flask-on-debian-12.webp\" alt=\"how to install flask on debian 12\" class=\"wp-image-47173\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2023\/10\/how-to-install-flask-on-debian-12.webp 1024w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2023\/10\/how-to-install-flask-on-debian-12-300x169.webp 300w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2023\/10\/how-to-install-flask-on-debian-12-150x84.webp 150w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2023\/10\/how-to-install-flask-on-debian-12-768x432.webp 768w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Flask is a lightweight micro web framework for Python. Its simplicity and flexibility make it an excellent choice for building anything from small personal projects to complex, production-ready web applications. In this guide, we&#8217;ll walk you through the process of how to install Flask on Debian 12.<\/p>\n\n\n\n<!--more-->\n\n\n\n<p class=\"wp-block-paragraph\">Flask depends on the Werkzeug WSGI toolkit, the Jinja template engine, and the Click CLI toolkit. Whether you&#8217;re a seasoned developer or just starting your web development journey, we&#8217;ll provide you with clear and easy-to-follow steps to ensure you have Flask up and running in no time.<\/p>\n\n\n\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_85 counter-hierarchy ez-toc-counter ez-toc-transparent ez-toc-container-direction\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<label for=\"ez-toc-cssicon-toggle-item-6a4e128b90cc6\" class=\"ez-toc-cssicon-toggle-label\"><span class=\"ez-toc-cssicon\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/label><input type=\"checkbox\"  id=\"ez-toc-cssicon-toggle-item-6a4e128b90cc6\"  aria-label=\"Toggle\" \/><nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-flask-on-debian-12\/#Prerequisites\" >Prerequisites<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-flask-on-debian-12\/#Step-1-Log-in-via-SSH\" >Step 1. Log in via SSH<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-flask-on-debian-12\/#Step-2-Install-Python-Packages-and-Create-a-Virtual-Environment\" >Step 2. Install Python Packages and Create a Virtual Environment<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-flask-on-debian-12\/#Step-3-Install-Flask-on-Debian-12\" >Step 3. Install Flask on Debian 12<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-flask-on-debian-12\/#Running-a-Simple-Flask-Application\" >Running a Simple Flask Application<\/a><\/li><\/ul><\/nav><\/div>\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Prerequisites\"><\/span>Prerequisites<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>A <a href=\"https:\/\/www.rosehosting.com\/debian-hosting\/\">Debian 12 VPS<\/a><\/li>\n<\/ul>\n\n\n\n<ul class=\"wp-block-list\">\n<li>SSH access to the root user or a regular system user with sudo privileges<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Step-1-Log-in-via-SSH\"><\/span>Step 1. Log in via SSH<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Let\u2019s log in to your Debian 12 VPS with SSH. You can log in as a root user, or as a regular user with sudo privileges.<\/p><div class=\"rhbl-mattermost-banner rhbl-entity-placement\" id=\"rhbl-51391658\"><div id=\"rhbl-2367290337\" style=\"margin-top: 20px;margin-bottom: 20px;margin-left: auto;margin-right: auto;text-align: center;\"><a href=\"https:\/\/www.rosehosting.com\/linux-vps-hosting\/?mtm_campaign=ad-mm&#038;mtm_source=blog&#038;mtm_content=mm\" target=\"_blank\" aria-label=\"slack-privacy-try-mattermost-5\"><img src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2024\/06\/slack-privacy-try-mattermost-5.webp\" alt=\"\"  srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2024\/06\/slack-privacy-try-mattermost-5.webp 728w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2024\/06\/slack-privacy-try-mattermost-5-300x37.webp 300w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2024\/06\/slack-privacy-try-mattermost-5-150x19.webp 150w\" sizes=\"(max-width: 728px) 100vw, 728px\" width=\"728\" height=\"90\"  style=\"display: inline-block;\" \/><\/a><\/div><\/div>\n\n\n\n<pre class=\"wp-block-code\"><code>ssh root@IP_Address -p Port_number<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">If you cannot log in as root, remember to replace \u201croot\u201d with a user that has sudo privileges. Additionally, replace the \u201cIP_Address\u201d and \u201cPort_Number\u201d with your server\u2019s respective IP address and SSH port.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Once logged in, update the package repository files on the system with the command:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># apt update<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Step-2-Install-Python-Packages-and-Create-a-Virtual-Environment\"><\/span>Step 2. Install Python Packages and Create a Virtual Environment <span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Debian 12 comes with Python version 3.11 installed by default &#8211; you can check this with the command:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># python --version\nPython 3.11.2<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Now you can install the required packages python3-pip and python3-venv with the command:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># apt install python3-venv python3-pip<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">You can install Flask globally with the command pip3 install flask, but it&#8217;s recommended to create a virtual environment and install the Flask application there.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Let&#8217;s create a new user and install the Flask application in a new virtual environment:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>#  adduser john<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Now, you can log in as the user john with the above command. After logging in, create the directories flaskapp\/templates:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># su - john\n$ mkdir -p flaskapp\/templates<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Step-3-Install-Flask-on-Debian-12\"><\/span>Step 3. Install Flask on Debian 12<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Enter the directory called <strong>flaskapp<\/strong> &#8211; you can now go ahead and create the virtual environment.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ cd flaskapp\n$ python3 -m venv virtualenv<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Now enter the virtual environment with:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># source virtualenv\/bin\/activate<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">You have now activated the virtual environment, where we can start our installation. Let&#8217;s install Flask and Gunicorn:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>(virtualenv) john@debian12$ pip3 install flask gunicorn<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">After the installation is completed, you should receive a similar output:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Successfully installed Jinja2-3.1.2 MarkupSafe-2.1.3 Werkzeug-3.0.0 blinker-1.6.3 click-8.1.7 flask-3.0.0 gunicorn-21.2.0 itsdangerous-2.1.2 packaging-23.2<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Running-a-Simple-Flask-Application\"><\/span>Running a Simple Flask Application<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Once Flask is installed, you can run a simple application to test if everything is working as expected. Make sure you are logged in as the user &#8220;john&#8221;. Create an <strong>app.py<\/strong> file using your preferred text editor:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>(virtualenv) john@debian12 ~\/flas$ nano simpleapp.py <\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Add the following code to the file:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>from flask import Flask\n\napp = Flask(__name__)\n\n@app.route('\/')\ndef hello():\n    return 'Hello, World!'\n\nif __name__ == '__main__':\n    app.run()<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Save and close the file. You can now run this example program:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>flask run &amp; <\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">The application will continue running in the background listening on port 5000.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">You can check the output of the program with this quick command:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>curl http:\/\/127.0.0.1:5000<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">You should get the following output:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>127.0.0.1 - - &#91;13\/Oct\/2023 08:14:17] \"GET \/ HTTP\/1.1\" 200 -\nHello, World!<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Congratulations! You have successfully installed Flask on Debian 12. You can now use Flask to run your programs and develop software. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Of course, you don\u2019t have to know how to install Flask on Debian 12 if you use one of our <a href=\"https:\/\/www.rosehosting.com\/debian-hosting\/\">Debian VPS Hosting<\/a> services, in which case you can simply ask our expert Linux admins to set up Flask on Debian 12 VPS for you. They are available 24\/7 and will take care of your request immediately.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">PS. If you liked this post on how to set up Flask on Debian 12, please share it with your friends on social networks or simply leave a reply in the comments section. Thanks.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Flask is a lightweight micro web framework for Python. Its simplicity and flexibility make it an excellent choice for building &#8230; <\/p>\n<p class=\"read-more-container\"><a title=\"How to Install Flask on Debian 12\" class=\"read-more button\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-flask-on-debian-12\/#more-47096\" aria-label=\"Read more about How to Install Flask on Debian 12\">Read More<\/a><\/p>\n","protected":false},"author":4,"featured_media":47173,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1700,13,1712],"tags":[48,1985],"class_list":["post-47096","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-debian","category-tutorials","category-web-frameworks","tag-debian","tag-flask","generate-columns","tablet-grid-50","mobile-grid-100","grid-parent","grid-33"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v27.9 (Yoast SEO v28.0) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>How to Install Flask on Debian 12 | RoseHosting<\/title>\n<meta name=\"description\" content=\"Planning on running Flask applications? Follow this simple guide to install Flask on Debian 12 and get your environment set up quickly.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-flask-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 Flask on Debian 12\" \/>\n<meta property=\"og:description\" content=\"How to Install Flask on Debian 12 | RoseHosting\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-flask-on-debian-12\/\" \/>\n<meta property=\"og:site_name\" content=\"RoseHosting\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/RoseHosting\" \/>\n<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/rosehosting.helpdesk\" \/>\n<meta property=\"article:published_time\" content=\"2023-11-27T18:30:00+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2023\/10\/how-to-install-flask-on-debian-12.webp\" \/>\n\t<meta property=\"og:image:width\" content=\"1024\" \/>\n\t<meta property=\"og:image:height\" content=\"576\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/webp\" \/>\n<meta name=\"author\" content=\"Jeff Wilson\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@rosehosting\" \/>\n<meta name=\"twitter:site\" content=\"@rosehosting\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Jeff Wilson\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-flask-on-debian-12\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-flask-on-debian-12\\\/\"},\"author\":{\"name\":\"Jeff Wilson\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#\\\/schema\\\/person\\\/7ce77a842fa6a9a7f8efa186f2353713\"},\"headline\":\"How to Install Flask on Debian 12\",\"datePublished\":\"2023-11-27T18:30:00+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-flask-on-debian-12\\\/\"},\"wordCount\":560,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-flask-on-debian-12\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2023\\\/10\\\/how-to-install-flask-on-debian-12.webp\",\"keywords\":[\"debian\",\"flask\"],\"articleSection\":[\"Debian\",\"Tutorials\",\"Web Frameworks\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-flask-on-debian-12\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-flask-on-debian-12\\\/\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-flask-on-debian-12\\\/\",\"name\":\"How to Install Flask on Debian 12 | RoseHosting\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-flask-on-debian-12\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-flask-on-debian-12\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2023\\\/10\\\/how-to-install-flask-on-debian-12.webp\",\"datePublished\":\"2023-11-27T18:30:00+00:00\",\"description\":\"Planning on running Flask applications? Follow this simple guide to install Flask on Debian 12 and get your environment set up quickly.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-flask-on-debian-12\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-flask-on-debian-12\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-flask-on-debian-12\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2023\\\/10\\\/how-to-install-flask-on-debian-12.webp\",\"contentUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2023\\\/10\\\/how-to-install-flask-on-debian-12.webp\",\"width\":1024,\"height\":576,\"caption\":\"how to install flask on debian 12\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-flask-on-debian-12\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Install Flask on Debian 12\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/\",\"name\":\"RoseHosting.com\",\"description\":\"Premium Linux Tutorials Since 2001\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#organization\",\"name\":\"RoseHosting\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/03\\\/android-chrome-192x192-1.png\",\"contentUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/03\\\/android-chrome-192x192-1.png\",\"width\":192,\"height\":192,\"caption\":\"RoseHosting\"},\"image\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/RoseHosting\",\"https:\\\/\\\/x.com\\\/rosehosting\",\"https:\\\/\\\/www.linkedin.com\\\/in\\\/rosehosting\\\/\"],\"description\":\"RoseHosting is a leading Linux hosting provider, serving thousands of clients world-wide since 2001.\",\"email\":\"info@rosehosting.com\",\"telephone\":\"(314) 275-0414\",\"legalName\":\"Rose Web Services LLC\",\"foundingDate\":\"2001-04-02\",\"numberOfEmployees\":{\"@type\":\"QuantitativeValue\",\"minValue\":\"11\",\"maxValue\":\"50\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#\\\/schema\\\/person\\\/7ce77a842fa6a9a7f8efa186f2353713\",\"name\":\"Jeff Wilson\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g\",\"caption\":\"Jeff Wilson\"},\"description\":\"An experienced Linux veteran with many years of experience. Helping other Linux admins with frequent Linux and business-related blog posts on the RoseHosting blog. Techie by choice. Loving nature and travel. Happily married and father of two lovely children.\",\"sameAs\":[\"https:\\\/\\\/www.rosehosting.com\",\"https:\\\/\\\/www.facebook.com\\\/rosehosting.helpdesk\"],\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/author\\\/jwilson\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"How to Install Flask on Debian 12 | RoseHosting","description":"Planning on running Flask applications? Follow this simple guide to install Flask on Debian 12 and get your environment set up quickly.","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:\/\/www.rosehosting.com\/blog\/how-to-install-flask-on-debian-12\/","og_locale":"en_US","og_type":"article","og_title":"How to Install Flask on Debian 12","og_description":"How to Install Flask on Debian 12 | RoseHosting","og_url":"https:\/\/www.rosehosting.com\/blog\/how-to-install-flask-on-debian-12\/","og_site_name":"RoseHosting","article_publisher":"https:\/\/www.facebook.com\/RoseHosting","article_author":"https:\/\/www.facebook.com\/rosehosting.helpdesk","article_published_time":"2023-11-27T18:30:00+00:00","og_image":[{"width":1024,"height":576,"url":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2023\/10\/how-to-install-flask-on-debian-12.webp","type":"image\/webp"}],"author":"Jeff Wilson","twitter_card":"summary_large_image","twitter_creator":"@rosehosting","twitter_site":"@rosehosting","twitter_misc":{"Written by":"Jeff Wilson","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-flask-on-debian-12\/#article","isPartOf":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-flask-on-debian-12\/"},"author":{"name":"Jeff Wilson","@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/person\/7ce77a842fa6a9a7f8efa186f2353713"},"headline":"How to Install Flask on Debian 12","datePublished":"2023-11-27T18:30:00+00:00","mainEntityOfPage":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-flask-on-debian-12\/"},"wordCount":560,"commentCount":0,"publisher":{"@id":"https:\/\/www.rosehosting.com\/blog\/#organization"},"image":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-flask-on-debian-12\/#primaryimage"},"thumbnailUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2023\/10\/how-to-install-flask-on-debian-12.webp","keywords":["debian","flask"],"articleSection":["Debian","Tutorials","Web Frameworks"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.rosehosting.com\/blog\/how-to-install-flask-on-debian-12\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-flask-on-debian-12\/","url":"https:\/\/www.rosehosting.com\/blog\/how-to-install-flask-on-debian-12\/","name":"How to Install Flask on Debian 12 | RoseHosting","isPartOf":{"@id":"https:\/\/www.rosehosting.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-flask-on-debian-12\/#primaryimage"},"image":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-flask-on-debian-12\/#primaryimage"},"thumbnailUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2023\/10\/how-to-install-flask-on-debian-12.webp","datePublished":"2023-11-27T18:30:00+00:00","description":"Planning on running Flask applications? Follow this simple guide to install Flask on Debian 12 and get your environment set up quickly.","breadcrumb":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-flask-on-debian-12\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.rosehosting.com\/blog\/how-to-install-flask-on-debian-12\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-flask-on-debian-12\/#primaryimage","url":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2023\/10\/how-to-install-flask-on-debian-12.webp","contentUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2023\/10\/how-to-install-flask-on-debian-12.webp","width":1024,"height":576,"caption":"how to install flask on debian 12"},{"@type":"BreadcrumbList","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-flask-on-debian-12\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.rosehosting.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How to Install Flask on Debian 12"}]},{"@type":"WebSite","@id":"https:\/\/www.rosehosting.com\/blog\/#website","url":"https:\/\/www.rosehosting.com\/blog\/","name":"RoseHosting.com","description":"Premium Linux Tutorials Since 2001","publisher":{"@id":"https:\/\/www.rosehosting.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.rosehosting.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.rosehosting.com\/blog\/#organization","name":"RoseHosting","url":"https:\/\/www.rosehosting.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/03\/android-chrome-192x192-1.png","contentUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/03\/android-chrome-192x192-1.png","width":192,"height":192,"caption":"RoseHosting"},"image":{"@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/RoseHosting","https:\/\/x.com\/rosehosting","https:\/\/www.linkedin.com\/in\/rosehosting\/"],"description":"RoseHosting is a leading Linux hosting provider, serving thousands of clients world-wide since 2001.","email":"info@rosehosting.com","telephone":"(314) 275-0414","legalName":"Rose Web Services LLC","foundingDate":"2001-04-02","numberOfEmployees":{"@type":"QuantitativeValue","minValue":"11","maxValue":"50"}},{"@type":"Person","@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/person\/7ce77a842fa6a9a7f8efa186f2353713","name":"Jeff Wilson","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g","caption":"Jeff Wilson"},"description":"An experienced Linux veteran with many years of experience. Helping other Linux admins with frequent Linux and business-related blog posts on the RoseHosting blog. Techie by choice. Loving nature and travel. Happily married and father of two lovely children.","sameAs":["https:\/\/www.rosehosting.com","https:\/\/www.facebook.com\/rosehosting.helpdesk"],"url":"https:\/\/www.rosehosting.com\/blog\/author\/jwilson\/"}]}},"_links":{"self":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts\/47096","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/comments?post=47096"}],"version-history":[{"count":7,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts\/47096\/revisions"}],"predecessor-version":[{"id":47202,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts\/47096\/revisions\/47202"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/media\/47173"}],"wp:attachment":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/media?parent=47096"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/categories?post=47096"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/tags?post=47096"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}