{"id":37,"date":"2026-04-04T20:29:15","date_gmt":"2026-04-04T20:29:15","guid":{"rendered":"https:\/\/gigz.pk\/dl\/?post_type=lesson&#038;p=37"},"modified":"2026-04-05T17:09:30","modified_gmt":"2026-04-05T17:09:30","slug":"installing-setting-up-environment","status":"publish","type":"lesson","link":"https:\/\/gigz.pk\/dl\/index.php\/lesson\/installing-setting-up-environment\/","title":{"rendered":"Installing &amp; Setting Up Environment"},"content":{"rendered":"\n<p>Before diving into deep learning projects, it is essential to set up a proper development environment. A well-configured environment ensures that all libraries, frameworks, and tools work seamlessly, reducing errors and improving productivity. This lesson will guide you through installing Python, deep learning frameworks, and configuring your environment for AI development.<\/p>\n\n\n\n<p><strong>Step 1: Install Python<\/strong><br>Python is the primary programming language for deep learning. You can install Python using:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Anaconda (Recommended for Beginners)<\/strong>: Comes with Python, Jupyter Notebook, and common libraries pre-installed. Download Anaconda from https:\/\/www.anaconda.com\/products\/individual<\/li>\n\n\n\n<li><strong>Official Python Installer<\/strong>: Install Python from the official website. Download Python from https:\/\/www.python.org\/downloads\/<\/li>\n<\/ul>\n\n\n\n<p><strong>Step 2: Install a Code Editor<\/strong><br>A code editor helps write and manage your Python scripts efficiently. Popular choices include:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>VS Code<\/strong> \u2013 Lightweight, customizable, with extensions for Python and AI development.<\/li>\n\n\n\n<li><strong>PyCharm<\/strong> \u2013 Feature-rich IDE for Python development.<\/li>\n\n\n\n<li><strong>Jupyter Notebook \/ JupyterLab<\/strong> \u2013 Interactive coding environment, ideal for experiments.<\/li>\n<\/ul>\n\n\n\n<p><strong>Step 3: Install Deep Learning Frameworks<\/strong><br>Install the frameworks required for deep learning projects:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>TensorFlow<\/strong><\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-preformatted\">pip install tensorflow<\/pre>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>PyTorch<\/strong><\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-preformatted\">pip install torch torchvision<\/pre>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Keras<\/strong> (if using standalone)<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-preformatted\">pip install keras<\/pre>\n\n\n\n<p><strong>Step 4: Install Supporting Libraries<\/strong><br>Other essential libraries for data handling and visualization:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">pip install numpy pandas matplotlib seaborn scikit-learn<\/pre>\n\n\n\n<p><strong>Step 5: Set Up Virtual Environments (Optional but Recommended)<\/strong><br>Virtual environments help isolate project dependencies:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"># Create a virtual environment<br>python -m venv myenv# Activate environment (Windows)<br>myenv\\Scripts\\activate# Activate environment (Mac\/Linux)<br>source myenv\/bin\/activate# Install required packages inside environment<br>pip install tensorflow torch keras numpy pandas matplotlib seaborn<\/pre>\n\n\n\n<p><strong>Step 6: Verify Installation<\/strong><br>Ensure that Python, frameworks, and libraries are installed correctly:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">import sys<br>import tensorflow as tf<br>import torch<br>import kerasprint(\"Python version:\", sys.version)<br>print(\"TensorFlow version:\", tf.__version__)<br>print(\"PyTorch version:\", torch.__version__)<br>print(\"Keras version:\", keras.__version__)<\/pre>\n\n\n\n<p><strong>Step 7: Optional \u2013 GPU Setup for Faster Training<\/strong><br>For accelerated deep learning, configure GPU support:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>NVIDIA GPU Drivers<\/strong> \u2013 Install latest drivers for your GPU.<\/li>\n\n\n\n<li><strong>CUDA Toolkit<\/strong> \u2013 Required for TensorFlow and PyTorch GPU support.<\/li>\n\n\n\n<li><strong>cuDNN Library<\/strong> \u2013 Deep learning primitives optimized for NVIDIA GPUs.<\/li>\n\n\n\n<li>Verify GPU availability:<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-preformatted\">import tensorflow as tf<br>print(\"Num GPUs Available:\", len(tf.config.list_physical_devices('GPU')))<\/pre>\n\n\n\n<p><strong>Lesson Summary<\/strong><br>In this lesson, you learned how to install Python, set up a code editor, install deep learning frameworks, supporting libraries, and configure virtual environments. Proper environment setup ensures smooth development and faster experimentation in deep learning projects.<\/p>\n\n\n<div class=\"yoast-breadcrumbs\"><span><span><a href=\"https:\/\/gigz.pk\/dl\/\">Home<\/a><\/span> \u00bb <span class=\"breadcrumb_last\" aria-current=\"page\">Deep Learning Foundations (Beginner) > Deep Learning Frameworks > Installing &#038; Setting Up Environment<\/span><\/span><\/div>\n\n\n<div class=\"schema-faq wp-block-yoast-faq-block\"><div class=\"schema-faq-section\" id=\"faq-question-1775334485037\"><strong class=\"schema-faq-question\"><\/strong> <p class=\"schema-faq-answer\"><\/p> <\/div> <\/div>\n","protected":false},"menu_order":18,"template":"","class_list":["post-37","lesson","type-lesson","status-publish","hentry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.6 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Installing &amp; Setting Up Environment - Deep Learning Mastery<\/title>\n<meta name=\"description\" content=\"Learn to install Python, TensorFlow, PyTorch, and libraries. Set up virtual environments, editors, and GPU for deep learning projects.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/gigz.pk\/dl\/index.php\/lesson\/installing-setting-up-environment\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Installing &amp; Setting Up Environment - Deep Learning Mastery\" \/>\n<meta property=\"og:description\" content=\"Learn to install Python, TensorFlow, PyTorch, and libraries. Set up virtual environments, editors, and GPU for deep learning projects.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/gigz.pk\/dl\/index.php\/lesson\/installing-setting-up-environment\/\" \/>\n<meta property=\"og:site_name\" content=\"Deep Learning Mastery\" \/>\n<meta property=\"article:modified_time\" content=\"2026-04-05T17:09:30+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":[\"WebPage\",\"FAQPage\"],\"@id\":\"https:\\\/\\\/gigz.pk\\\/dl\\\/index.php\\\/lesson\\\/installing-setting-up-environment\\\/\",\"url\":\"https:\\\/\\\/gigz.pk\\\/dl\\\/index.php\\\/lesson\\\/installing-setting-up-environment\\\/\",\"name\":\"Installing &amp; Setting Up Environment - Deep Learning Mastery\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/gigz.pk\\\/dl\\\/#website\"},\"datePublished\":\"2026-04-04T20:29:15+00:00\",\"dateModified\":\"2026-04-05T17:09:30+00:00\",\"description\":\"Learn to install Python, TensorFlow, PyTorch, and libraries. Set up virtual environments, editors, and GPU for deep learning projects.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/gigz.pk\\\/dl\\\/index.php\\\/lesson\\\/installing-setting-up-environment\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/gigz.pk\\\/dl\\\/index.php\\\/lesson\\\/installing-setting-up-environment\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/gigz.pk\\\/dl\\\/index.php\\\/lesson\\\/installing-setting-up-environment\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/gigz.pk\\\/dl\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Deep Learning Foundations (Beginner) > Deep Learning Frameworks > Installing & Setting Up Environment\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/gigz.pk\\\/dl\\\/#website\",\"url\":\"https:\\\/\\\/gigz.pk\\\/dl\\\/\",\"name\":\"Deep Learning Mastery\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/gigz.pk\\\/dl\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Installing &amp; Setting Up Environment - Deep Learning Mastery","description":"Learn to install Python, TensorFlow, PyTorch, and libraries. Set up virtual environments, editors, and GPU for deep learning projects.","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:\/\/gigz.pk\/dl\/index.php\/lesson\/installing-setting-up-environment\/","og_locale":"en_US","og_type":"article","og_title":"Installing &amp; Setting Up Environment - Deep Learning Mastery","og_description":"Learn to install Python, TensorFlow, PyTorch, and libraries. Set up virtual environments, editors, and GPU for deep learning projects.","og_url":"https:\/\/gigz.pk\/dl\/index.php\/lesson\/installing-setting-up-environment\/","og_site_name":"Deep Learning Mastery","article_modified_time":"2026-04-05T17:09:30+00:00","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":["WebPage","FAQPage"],"@id":"https:\/\/gigz.pk\/dl\/index.php\/lesson\/installing-setting-up-environment\/","url":"https:\/\/gigz.pk\/dl\/index.php\/lesson\/installing-setting-up-environment\/","name":"Installing &amp; Setting Up Environment - Deep Learning Mastery","isPartOf":{"@id":"https:\/\/gigz.pk\/dl\/#website"},"datePublished":"2026-04-04T20:29:15+00:00","dateModified":"2026-04-05T17:09:30+00:00","description":"Learn to install Python, TensorFlow, PyTorch, and libraries. Set up virtual environments, editors, and GPU for deep learning projects.","breadcrumb":{"@id":"https:\/\/gigz.pk\/dl\/index.php\/lesson\/installing-setting-up-environment\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/gigz.pk\/dl\/index.php\/lesson\/installing-setting-up-environment\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/gigz.pk\/dl\/index.php\/lesson\/installing-setting-up-environment\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/gigz.pk\/dl\/"},{"@type":"ListItem","position":2,"name":"Deep Learning Foundations (Beginner) > Deep Learning Frameworks > Installing & Setting Up Environment"}]},{"@type":"WebSite","@id":"https:\/\/gigz.pk\/dl\/#website","url":"https:\/\/gigz.pk\/dl\/","name":"Deep Learning Mastery","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/gigz.pk\/dl\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"}]}},"_links":{"self":[{"href":"https:\/\/gigz.pk\/dl\/index.php\/wp-json\/wp\/v2\/lesson\/37","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/gigz.pk\/dl\/index.php\/wp-json\/wp\/v2\/lesson"}],"about":[{"href":"https:\/\/gigz.pk\/dl\/index.php\/wp-json\/wp\/v2\/types\/lesson"}],"wp:attachment":[{"href":"https:\/\/gigz.pk\/dl\/index.php\/wp-json\/wp\/v2\/media?parent=37"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}