{"id":5646387,"date":"2022-05-29T12:34:54","date_gmt":"2022-05-29T16:34:54","guid":{"rendered":"https:\/\/lightning.ai\/pages\/?p=5646387"},"modified":"2022-09-10T11:14:56","modified_gmt":"2022-09-10T15:14:56","slug":"virtual-environments-for-python","status":"publish","type":"post","link":"https:\/\/lightning.ai\/pages\/education\/lightning-bits\/virtual-environments-for-python\/","title":{"rendered":"EP 03: Virtual Environments for Python"},"content":{"rendered":"<p>In this Lightning Bits episode, William and Sebastian discuss Virtual Environments and the benefits of having dedicated spaces on your computer for focused and shared work. Watch the video, or continue reading below.<\/p>\n<p><iframe loading=\"lazy\" title=\"YouTube video player\" src=\"https:\/\/www.youtube.com\/embed\/WHWsABk4Ejk\" width=\"560\" height=\"315\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\"><\/iframe><\/p>\n<h2>Environments<\/h2>\n<p>There are many ways we can set up a virtual environment: Virtualenv, Anaconda, Miniconda, Mini-forge, and several others.<\/p>\n<p>Here, we are going to focus on miniconda and conda-forge.<\/p>\n<h3>A note about Miniconda vs Mini-forge<\/h3>\n<p>You can think of Miniconda as a\u00a0<em>mini<\/em>\u00a0version of the Anaconda, which is a Python distribution that comes with many packages pre-installed. The main tool in Anaconda &amp; Miniconda is the so-called\u00a0<code>conda<\/code> environment and package manager. It is a tool for creating new virtual environments and installing packages.<\/p>\n<p>Now, Mini-forge is a community-maintained repository for conda-compatible packages. Using either miniconda or conda-forge is fine as the\u00a0<code>conda<\/code> commands are identical.<\/p>\n<p>William happily uses Miniconda while Sebastian prefers mini-forge, but as mentioned above, both William and Sebastian use the exact same\u00a0<code>conda<\/code>\u00a0commands.<\/p>\n<h3>Installing Miniconda<\/h3>\n<p>We recommend visiting the\u00a0<span style=\"color: #0000ff;\"><a style=\"color: #0000ff;\" href=\"https:\/\/docs.conda.io\/en\/latest\/miniconda.html\" rel=\"nofollow\"><u>official Miniconda website<\/u><\/a><\/span>\u00a0to find the latest information on installing Miniconda for your machine and operating system. For example, as of this writing, Sebastian would select one of the two following options to install Miniconda on his MacBook, which has an ARM-based M1 chip:<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-5646388 size-full\" src=\"https:\/\/lightningaidev.wpengine.com\/wp-content\/uploads\/2022\/08\/conda-installer.png\" alt=\"Conda Installer\" width=\"3006\" height=\"1816\" srcset=\"https:\/\/lightningaidev.wpengine.com\/wp-content\/uploads\/2022\/08\/conda-installer.png 3006w, https:\/\/lightningaidev.wpengine.com\/wp-content\/uploads\/2022\/08\/conda-installer-300x181.png 300w, https:\/\/lightningaidev.wpengine.com\/wp-content\/uploads\/2022\/08\/conda-installer-1024x619.png 1024w, https:\/\/lightningaidev.wpengine.com\/wp-content\/uploads\/2022\/08\/conda-installer-768x464.png 768w, https:\/\/lightningaidev.wpengine.com\/wp-content\/uploads\/2022\/08\/conda-installer-1536x928.png 1536w, https:\/\/lightningaidev.wpengine.com\/wp-content\/uploads\/2022\/08\/conda-installer-2048x1237.png 2048w, https:\/\/lightningaidev.wpengine.com\/wp-content\/uploads\/2022\/08\/conda-installer-1920x1160.png 1920w, https:\/\/lightningaidev.wpengine.com\/wp-content\/uploads\/2022\/08\/conda-installer-600x362.png 600w\" sizes=\"(max-width: 3006px) 100vw, 3006px\" \/><br \/>\nNote that you can either choose the\u00a0<code>pkg<\/code>\u00a0or\u00a0<code>bash<\/code>\u00a0file installer. The\u00a0<code>pkg<\/code>\u00a0installer guides you through an interactive UI whereas the\u00a0<code>bash<\/code>\u00a0installer requires you to install Miniconda from your command line terminal.<\/p>\n<ul>\n<li>If you download the\u00a0<code>pkg<\/code>\u00a0file, just double-click the downloaded file and follow the instructions.<\/li>\n<li>If you download the `bash file, go to your terminal, type<\/li>\n<\/ul>\n<pre>bash Miniconda3-py39_4.12.0-MacOSX-arm64.sh\r\n<\/pre>\n<p>and follow the instructions that will be shown in the terminal. Note that the exact file name may differ based on which version of the bash installer you downloaded. Also, make sure you <code>cd<\/code>ed into the folder containing the installer file for this to work.<\/p>\n<p><strong>Checking the Installation<\/strong><\/p>\n<p>After installing Miniconda, you can open a new terminal and check if it was successfully installed by running\u00a0<code>conda --version<\/code>. If it was correctly installed, you should see the current version number of conda, for example, as shown below:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-5646389 size-full\" src=\"https:\/\/lightningaidev.wpengine.com\/wp-content\/uploads\/2022\/08\/conda-version.png\" alt=\"Conda Version\" width=\"1492\" height=\"836\" srcset=\"https:\/\/lightningaidev.wpengine.com\/wp-content\/uploads\/2022\/08\/conda-version.png 1492w, https:\/\/lightningaidev.wpengine.com\/wp-content\/uploads\/2022\/08\/conda-version-300x168.png 300w, https:\/\/lightningaidev.wpengine.com\/wp-content\/uploads\/2022\/08\/conda-version-1024x574.png 1024w, https:\/\/lightningaidev.wpengine.com\/wp-content\/uploads\/2022\/08\/conda-version-768x430.png 768w, https:\/\/lightningaidev.wpengine.com\/wp-content\/uploads\/2022\/08\/conda-version-600x336.png 600w\" sizes=\"(max-width: 1492px) 100vw, 1492px\" \/><\/p>\n<h3>Useful conda &amp; pip Commands<\/h3>\n<p><strong>Check<\/strong>\u00a0what environments are currently installed on your computer:<\/p>\n<pre>conda env list<\/pre>\n<p><strong>Create<\/strong>\u00a0a new environment called\u00a0<code>course_1<\/code>:<\/p>\n<pre>conda create --name course_1 python=3.7<\/pre>\n<p><strong>Activate<\/strong>\u00a0an environment:<\/p>\n<pre>conda activate course_1<\/pre>\n<p><em>Tip: the active environment is usually indicated at the beginning of the terminal prompt as shown in the screenshot below:<\/em><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-5646390 size-full\" src=\"https:\/\/lightningaidev.wpengine.com\/wp-content\/uploads\/2022\/08\/active-env.png\" alt=\"Finding the active environment\" width=\"1492\" height=\"836\" srcset=\"https:\/\/lightningaidev.wpengine.com\/wp-content\/uploads\/2022\/08\/active-env.png 1492w, https:\/\/lightningaidev.wpengine.com\/wp-content\/uploads\/2022\/08\/active-env-300x168.png 300w, https:\/\/lightningaidev.wpengine.com\/wp-content\/uploads\/2022\/08\/active-env-1024x574.png 1024w, https:\/\/lightningaidev.wpengine.com\/wp-content\/uploads\/2022\/08\/active-env-768x430.png 768w, https:\/\/lightningaidev.wpengine.com\/wp-content\/uploads\/2022\/08\/active-env-600x336.png 600w\" sizes=\"(max-width: 1492px) 100vw, 1492px\" \/><\/p>\n<p><strong>List<\/strong>\u00a0all packages currently installed in the active environment:<\/p>\n<pre>pip freeze<\/pre>\n<p>To save the requirements list to a\u00a0<code>requirements.txt<\/code>\u00a0file, you can use the\u00a0<code>&gt;<\/code>\u00a0symbol:<\/p>\n<pre>pip freeze <span class=\"pl-k\">&gt;<\/span> requirements.txt<\/pre>\n<p><strong>Install new<\/strong>\u00a0packages with pip<\/p>\n<pre>pip install pytorch-lightning<\/pre>\n<p>Alternatively, installing directly with conda would look like as follows:<\/p>\n<pre>conda install pytorch-lightning -c conda-forge<\/pre>\n<p><strong>Install<\/strong>\u00a0packages from a\u00a0<strong><code>requirements.txt<\/code><\/strong>\u00a0file:<\/p>\n<pre>pip install -r requirements.txt<\/pre>\n<h3>Bonus: Exporting an Environment Using conda<\/h3>\n<p>Instead of using\u00a0<code>pip freeze<\/code>, you can also use\u00a0<code>conda<\/code> to snapshot your environment. For instance, you can run the following command to create an environment.yml YAML file:<\/p>\n<pre>conda env export &gt; environment. yml<\/pre>\n<p>Then, you can share the\u00a0<code>environment. yml<\/code>, and someone with the file can recreate the environment using the following command:<\/p>\n<pre>conda env create --file environment.yml<\/pre>\n<p>Alternatively, you want to install the packages from\u00a0<code>environment.yml<\/code>\u00a0into an existing environment, you can use the\u00a0<code>update<\/code>\u00a0command as follows:<\/p>\n<pre>conda env update --file environment.yml<\/pre>\n<h3>Bonus: Checking Your Current Environment in Jupyter Notebooks<\/h3>\n<p>When you create a new environment, it is a good idea to install Jupyter Notebook\/Lab into that environment as well &#8212; this ensures that you don&#8217;t accidentally launch a Jupyter Notebook\/Lab instance attached to a different environment.<br \/>\nTo conveniently check your current computer specs, conda environment, and the installed packages, Sebastian developed the handy\u00a0<span style=\"color: #0000ff;\"><a style=\"color: #0000ff;\" href=\"https:\/\/github.com\/rasbt\/watermark\"><u>watermark<\/u><\/a><\/span>\u00a0extension.<\/p>\n<p>After installing watermark as follows<\/p>\n<pre>pip install watermark<\/pre>\n<p>you can get various information about your computer and environment as shown in the screenshots below:<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-5646391 size-full\" src=\"https:\/\/lightningaidev.wpengine.com\/wp-content\/uploads\/2022\/08\/watermark.png\" alt=\"Watermark\" width=\"1814\" height=\"1744\" srcset=\"https:\/\/lightningaidev.wpengine.com\/wp-content\/uploads\/2022\/08\/watermark.png 1814w, https:\/\/lightningaidev.wpengine.com\/wp-content\/uploads\/2022\/08\/watermark-300x288.png 300w, https:\/\/lightningaidev.wpengine.com\/wp-content\/uploads\/2022\/08\/watermark-1024x984.png 1024w, https:\/\/lightningaidev.wpengine.com\/wp-content\/uploads\/2022\/08\/watermark-768x738.png 768w, https:\/\/lightningaidev.wpengine.com\/wp-content\/uploads\/2022\/08\/watermark-1536x1477.png 1536w, https:\/\/lightningaidev.wpengine.com\/wp-content\/uploads\/2022\/08\/watermark-600x577.png 600w\" sizes=\"(max-width: 1814px) 100vw, 1814px\" \/><br \/>\nStay tuned for future episodes of Lightning Bits! Also, if you have any questions, please don&#8217;t hesitate to reach out on <a style=\"color: #0000ff;\" href=\"https:\/\/pytorch-lightning.slack.com\/archives\/C03GS6MTCCQ\" rel=\"nofollow\"><u>Slack<\/u><\/a>!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this Lightning Bits episode, William and Sebastian discuss Virtual Environments and the benefits of having dedicated spaces on your computer for focused and shared work. Watch the video, or continue reading below. Environments There are many ways we can set up a virtual environment: Virtualenv, Anaconda, Miniconda, Mini-forge, and several others. Here, we are<a class=\"excerpt-read-more\" href=\"https:\/\/lightning.ai\/pages\/education\/lightning-bits\/virtual-environments-for-python\/\" title=\"ReadEP 03: Virtual Environments for Python\">&#8230; Read more &raquo;<\/a><\/p>\n","protected":false},"author":16,"featured_media":5646395,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"footnotes":"","_links_to":"","_links_to_target":""},"categories":[102],"tags":[85,83,77,84],"glossary":[],"acf":{"hide_from_archive":null,"content_type":null,"code_embed":null,"code_shortcode":null,"custom_styles":null,"sticky":null,"additional_authors":null,"mathjax":null,"default_editor":null,"sections":null,"show_table_of_contents":null,"table_of_contents":null,"tabs":null,"tab_group":null},"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>EP 03: Virtual Environments for Python - Lightning AI<\/title>\n<meta name=\"description\" content=\"William and Sebastian discuss Virtual Environments and the benefits of having dedicated spaces on your computer for focused and shared work\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/lightning.ai\/pages\/education\/lightning-bits\/virtual-environments-for-python\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"EP 03: Virtual Environments for Python - Lightning AI\" \/>\n<meta property=\"og:description\" content=\"William and Sebastian discuss Virtual Environments and the benefits of having dedicated spaces on your computer for focused and shared work\" \/>\n<meta property=\"og:url\" content=\"https:\/\/lightning.ai\/pages\/education\/lightning-bits\/virtual-environments-for-python\/\" \/>\n<meta property=\"og:site_name\" content=\"Lightning AI\" \/>\n<meta property=\"article:published_time\" content=\"2022-05-29T16:34:54+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-09-10T15:14:56+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/lightningaidev.wpengine.com\/wp-content\/uploads\/2022\/08\/Virtual-Envrionments-for-Python.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1280\" \/>\n\t<meta property=\"og:image:height\" content=\"720\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"JP Hennessy\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@LightningAI\" \/>\n<meta name=\"twitter:site\" content=\"@LightningAI\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"JP Hennessy\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/lightning.ai\/pages\/education\/lightning-bits\/virtual-environments-for-python\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/lightning.ai\/pages\/education\/lightning-bits\/virtual-environments-for-python\/\"},\"author\":{\"name\":\"JP Hennessy\",\"@id\":\"https:\/\/lightning.ai\/pages\/#\/schema\/person\/2518f4d5541f8e98016f6289169141a6\"},\"headline\":\"EP 03: Virtual Environments for Python\",\"datePublished\":\"2022-05-29T16:34:54+00:00\",\"dateModified\":\"2022-09-10T15:14:56+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/lightning.ai\/pages\/education\/lightning-bits\/virtual-environments-for-python\/\"},\"wordCount\":619,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/lightning.ai\/pages\/#organization\"},\"image\":{\"@id\":\"https:\/\/lightning.ai\/pages\/education\/lightning-bits\/virtual-environments-for-python\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/lightningaidev.wpengine.com\/wp-content\/uploads\/2022\/08\/Virtual-Envrionments-for-Python.png\",\"keywords\":[\"conda\",\"environment\",\"lightning bits\",\"miniconda\"],\"articleSection\":[\"Lightning Bits\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/lightning.ai\/pages\/education\/lightning-bits\/virtual-environments-for-python\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/lightning.ai\/pages\/education\/lightning-bits\/virtual-environments-for-python\/\",\"url\":\"https:\/\/lightning.ai\/pages\/education\/lightning-bits\/virtual-environments-for-python\/\",\"name\":\"EP 03: Virtual Environments for Python - Lightning AI\",\"isPartOf\":{\"@id\":\"https:\/\/lightning.ai\/pages\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/lightning.ai\/pages\/education\/lightning-bits\/virtual-environments-for-python\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/lightning.ai\/pages\/education\/lightning-bits\/virtual-environments-for-python\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/lightningaidev.wpengine.com\/wp-content\/uploads\/2022\/08\/Virtual-Envrionments-for-Python.png\",\"datePublished\":\"2022-05-29T16:34:54+00:00\",\"dateModified\":\"2022-09-10T15:14:56+00:00\",\"description\":\"William and Sebastian discuss Virtual Environments and the benefits of having dedicated spaces on your computer for focused and shared work\",\"breadcrumb\":{\"@id\":\"https:\/\/lightning.ai\/pages\/education\/lightning-bits\/virtual-environments-for-python\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/lightning.ai\/pages\/education\/lightning-bits\/virtual-environments-for-python\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/lightning.ai\/pages\/education\/lightning-bits\/virtual-environments-for-python\/#primaryimage\",\"url\":\"https:\/\/lightningaidev.wpengine.com\/wp-content\/uploads\/2022\/08\/Virtual-Envrionments-for-Python.png\",\"contentUrl\":\"https:\/\/lightningaidev.wpengine.com\/wp-content\/uploads\/2022\/08\/Virtual-Envrionments-for-Python.png\",\"width\":1280,\"height\":720,\"caption\":\"Virtual Envrionments for Python\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/lightning.ai\/pages\/education\/lightning-bits\/virtual-environments-for-python\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/lightning.ai\/pages\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"EP 03: Virtual Environments for Python\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/lightning.ai\/pages\/#website\",\"url\":\"https:\/\/lightning.ai\/pages\/\",\"name\":\"Lightning AI\",\"description\":\"The platform for teams to build AI.\",\"publisher\":{\"@id\":\"https:\/\/lightning.ai\/pages\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/lightning.ai\/pages\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/lightning.ai\/pages\/#organization\",\"name\":\"Lightning AI\",\"url\":\"https:\/\/lightning.ai\/pages\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/lightning.ai\/pages\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/lightningaidev.wpengine.com\/wp-content\/uploads\/2023\/02\/image-17.png\",\"contentUrl\":\"https:\/\/lightningaidev.wpengine.com\/wp-content\/uploads\/2023\/02\/image-17.png\",\"width\":1744,\"height\":856,\"caption\":\"Lightning AI\"},\"image\":{\"@id\":\"https:\/\/lightning.ai\/pages\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/x.com\/LightningAI\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/lightning.ai\/pages\/#\/schema\/person\/2518f4d5541f8e98016f6289169141a6\",\"name\":\"JP Hennessy\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/lightning.ai\/pages\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/28ade268218ae45f723b0b62499f527a?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/28ade268218ae45f723b0b62499f527a?s=96&d=mm&r=g\",\"caption\":\"JP Hennessy\"},\"url\":\"https:\/\/lightning.ai\/pages\/author\/jplightning-ai\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"EP 03: Virtual Environments for Python - Lightning AI","description":"William and Sebastian discuss Virtual Environments and the benefits of having dedicated spaces on your computer for focused and shared work","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:\/\/lightning.ai\/pages\/education\/lightning-bits\/virtual-environments-for-python\/","og_locale":"en_US","og_type":"article","og_title":"EP 03: Virtual Environments for Python - Lightning AI","og_description":"William and Sebastian discuss Virtual Environments and the benefits of having dedicated spaces on your computer for focused and shared work","og_url":"https:\/\/lightning.ai\/pages\/education\/lightning-bits\/virtual-environments-for-python\/","og_site_name":"Lightning AI","article_published_time":"2022-05-29T16:34:54+00:00","article_modified_time":"2022-09-10T15:14:56+00:00","og_image":[{"width":1280,"height":720,"url":"https:\/\/lightningaidev.wpengine.com\/wp-content\/uploads\/2022\/08\/Virtual-Envrionments-for-Python.png","type":"image\/png"}],"author":"JP Hennessy","twitter_card":"summary_large_image","twitter_creator":"@LightningAI","twitter_site":"@LightningAI","twitter_misc":{"Written by":"JP Hennessy","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/lightning.ai\/pages\/education\/lightning-bits\/virtual-environments-for-python\/#article","isPartOf":{"@id":"https:\/\/lightning.ai\/pages\/education\/lightning-bits\/virtual-environments-for-python\/"},"author":{"name":"JP Hennessy","@id":"https:\/\/lightning.ai\/pages\/#\/schema\/person\/2518f4d5541f8e98016f6289169141a6"},"headline":"EP 03: Virtual Environments for Python","datePublished":"2022-05-29T16:34:54+00:00","dateModified":"2022-09-10T15:14:56+00:00","mainEntityOfPage":{"@id":"https:\/\/lightning.ai\/pages\/education\/lightning-bits\/virtual-environments-for-python\/"},"wordCount":619,"commentCount":0,"publisher":{"@id":"https:\/\/lightning.ai\/pages\/#organization"},"image":{"@id":"https:\/\/lightning.ai\/pages\/education\/lightning-bits\/virtual-environments-for-python\/#primaryimage"},"thumbnailUrl":"https:\/\/lightningaidev.wpengine.com\/wp-content\/uploads\/2022\/08\/Virtual-Envrionments-for-Python.png","keywords":["conda","environment","lightning bits","miniconda"],"articleSection":["Lightning Bits"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/lightning.ai\/pages\/education\/lightning-bits\/virtual-environments-for-python\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/lightning.ai\/pages\/education\/lightning-bits\/virtual-environments-for-python\/","url":"https:\/\/lightning.ai\/pages\/education\/lightning-bits\/virtual-environments-for-python\/","name":"EP 03: Virtual Environments for Python - Lightning AI","isPartOf":{"@id":"https:\/\/lightning.ai\/pages\/#website"},"primaryImageOfPage":{"@id":"https:\/\/lightning.ai\/pages\/education\/lightning-bits\/virtual-environments-for-python\/#primaryimage"},"image":{"@id":"https:\/\/lightning.ai\/pages\/education\/lightning-bits\/virtual-environments-for-python\/#primaryimage"},"thumbnailUrl":"https:\/\/lightningaidev.wpengine.com\/wp-content\/uploads\/2022\/08\/Virtual-Envrionments-for-Python.png","datePublished":"2022-05-29T16:34:54+00:00","dateModified":"2022-09-10T15:14:56+00:00","description":"William and Sebastian discuss Virtual Environments and the benefits of having dedicated spaces on your computer for focused and shared work","breadcrumb":{"@id":"https:\/\/lightning.ai\/pages\/education\/lightning-bits\/virtual-environments-for-python\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/lightning.ai\/pages\/education\/lightning-bits\/virtual-environments-for-python\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/lightning.ai\/pages\/education\/lightning-bits\/virtual-environments-for-python\/#primaryimage","url":"https:\/\/lightningaidev.wpengine.com\/wp-content\/uploads\/2022\/08\/Virtual-Envrionments-for-Python.png","contentUrl":"https:\/\/lightningaidev.wpengine.com\/wp-content\/uploads\/2022\/08\/Virtual-Envrionments-for-Python.png","width":1280,"height":720,"caption":"Virtual Envrionments for Python"},{"@type":"BreadcrumbList","@id":"https:\/\/lightning.ai\/pages\/education\/lightning-bits\/virtual-environments-for-python\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/lightning.ai\/pages\/"},{"@type":"ListItem","position":2,"name":"EP 03: Virtual Environments for Python"}]},{"@type":"WebSite","@id":"https:\/\/lightning.ai\/pages\/#website","url":"https:\/\/lightning.ai\/pages\/","name":"Lightning AI","description":"The platform for teams to build AI.","publisher":{"@id":"https:\/\/lightning.ai\/pages\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/lightning.ai\/pages\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/lightning.ai\/pages\/#organization","name":"Lightning AI","url":"https:\/\/lightning.ai\/pages\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/lightning.ai\/pages\/#\/schema\/logo\/image\/","url":"https:\/\/lightningaidev.wpengine.com\/wp-content\/uploads\/2023\/02\/image-17.png","contentUrl":"https:\/\/lightningaidev.wpengine.com\/wp-content\/uploads\/2023\/02\/image-17.png","width":1744,"height":856,"caption":"Lightning AI"},"image":{"@id":"https:\/\/lightning.ai\/pages\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/x.com\/LightningAI"]},{"@type":"Person","@id":"https:\/\/lightning.ai\/pages\/#\/schema\/person\/2518f4d5541f8e98016f6289169141a6","name":"JP Hennessy","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/lightning.ai\/pages\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/28ade268218ae45f723b0b62499f527a?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/28ade268218ae45f723b0b62499f527a?s=96&d=mm&r=g","caption":"JP Hennessy"},"url":"https:\/\/lightning.ai\/pages\/author\/jplightning-ai\/"}]}},"_links":{"self":[{"href":"https:\/\/lightning.ai\/pages\/wp-json\/wp\/v2\/posts\/5646387"}],"collection":[{"href":"https:\/\/lightning.ai\/pages\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lightning.ai\/pages\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lightning.ai\/pages\/wp-json\/wp\/v2\/users\/16"}],"replies":[{"embeddable":true,"href":"https:\/\/lightning.ai\/pages\/wp-json\/wp\/v2\/comments?post=5646387"}],"version-history":[{"count":0,"href":"https:\/\/lightning.ai\/pages\/wp-json\/wp\/v2\/posts\/5646387\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lightning.ai\/pages\/wp-json\/wp\/v2\/media\/5646395"}],"wp:attachment":[{"href":"https:\/\/lightning.ai\/pages\/wp-json\/wp\/v2\/media?parent=5646387"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lightning.ai\/pages\/wp-json\/wp\/v2\/categories?post=5646387"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lightning.ai\/pages\/wp-json\/wp\/v2\/tags?post=5646387"},{"taxonomy":"glossary","embeddable":true,"href":"https:\/\/lightning.ai\/pages\/wp-json\/wp\/v2\/glossary?post=5646387"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}