{"id":121,"date":"2023-06-02T19:23:26","date_gmt":"2023-06-02T19:23:26","guid":{"rendered":"http:\/\/python.garden\/index.php\/2023\/06\/02\/installation-and-setup-of-python\/"},"modified":"2023-06-04T17:03:09","modified_gmt":"2023-06-04T17:03:09","slug":"installation-and-setup-of-python","status":"publish","type":"post","link":"https:\/\/python.garden\/index.php\/2023\/06\/02\/installation-and-setup-of-python\/","title":{"rendered":"Chapter 1.1: Installation and setup of Python"},"content":{"rendered":"\n<h1 class=\"wp-block-heading\">Installing Python and setting up the environment<\/h1>\n\n\n\n<h1 class=\"wp-block-heading\">Introduction<\/h1>\n\n\n\n<p>Python is a high-level, interpreted programming language known for its simplicity and readability. In this chapter, we&#8217;ll go through the steps needed to install Python and set up your programming environment.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Installation<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">Windows<\/h3>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Visit the official Python website at <a href=\"https:\/\/www.python.org\/\" target=\"_blank\" rel=\"noreferrer noopener\">www.python.org<\/a><\/li>\n\n\n\n<li>Navigate to the Downloads section and click on the button to download the latest version of Python<\/li>\n\n\n\n<li>Run the downloaded installer file<\/li>\n\n\n\n<li>In the installer, check the box that says &#8216;Add Python to PATH&#8217;, then click &#8216;Install Now&#8217;<\/li>\n<\/ol>\n\n\n\n<h3 class=\"wp-block-heading\">macOS<\/h3>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Python comes preinstalled on macOS, but you may want to install a newer version<\/li>\n\n\n\n<li>If so, it is recommended to use a package manager like Homebrew. First, install Homebrew by following the instructions at <a href=\"https:\/\/brew.sh\/\" target=\"_blank\" rel=\"noreferrer noopener\">brew.sh<\/a><\/li>\n\n\n\n<li>Once Homebrew is installed, open Terminal and type &#8216;brew install python&#8217;<\/li>\n<\/ol>\n\n\n\n<h3 class=\"wp-block-heading\">Linux<\/h3>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Most Linux distributions come with Python preinstalled, but you may want to install a newer version<\/li>\n\n\n\n<li>For Ubuntu, you can use the following commands in Terminal:\n<ul class=\"wp-block-list\">\n<li>&#8216;sudo apt-get update&#8217;<\/li>\n\n\n\n<li>&#8216;sudo apt-get install python3&#8217;<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n\n\n\n<h2 class=\"wp-block-heading\">Setting up your environment<\/h2>\n\n\n\n<p>Now that Python is installed, you&#8217;ll want to set up an integrated development environment (IDE) to write and run your code. There are many IDEs to choose from, but for beginners, we recommend starting with a simple text editor like Sublime Text, or an IDE like PyCharm.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Conclusion<\/h2>\n\n\n\n<p>Congratulations on installing Python and setting up your programming environment! In the next chapter, we&#8217;ll delve into writing and running our first Python program.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Installing Python and setting up the environment Introduction Python is a high-level, interpreted programming language known for its simplicity and readability. In this chapter, we&#8217;ll go through the steps needed&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[96,94,95],"tags":[],"class_list":["post-121","post","type-post","status-publish","format-standard","hentry","category-installation-and-setup-of-python","category-introduction-to-python-2","category-introduction-to-python-introduction-to-python-2"],"featured_image_src":null,"author_info":{"display_name":"shababdoo","author_link":"https:\/\/python.garden\/index.php\/author\/shababdoo\/"},"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/python.garden\/index.php\/wp-json\/wp\/v2\/posts\/121","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/python.garden\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/python.garden\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/python.garden\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/python.garden\/index.php\/wp-json\/wp\/v2\/comments?post=121"}],"version-history":[{"count":0,"href":"https:\/\/python.garden\/index.php\/wp-json\/wp\/v2\/posts\/121\/revisions"}],"wp:attachment":[{"href":"https:\/\/python.garden\/index.php\/wp-json\/wp\/v2\/media?parent=121"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/python.garden\/index.php\/wp-json\/wp\/v2\/categories?post=121"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/python.garden\/index.php\/wp-json\/wp\/v2\/tags?post=121"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}