{"id":35858,"date":"2023-03-20T21:48:16","date_gmt":"2023-03-20T16:18:16","guid":{"rendered":"https:\/\/www.seminarsonly.com\/news\/?p=35858"},"modified":"2023-03-20T21:49:55","modified_gmt":"2023-03-20T16:19:55","slug":"activate-virtual-environment-python-activate-deactivate-and-delete-python-venv","status":"publish","type":"post","link":"https:\/\/seminarsonly.com\/news\/activate-virtual-environment-python-activate-deactivate-and-delete-python-venv\/","title":{"rendered":"Activate Virtual Environment Python : Activate, Deactivate, And Delete Python Venv"},"content":{"rendered":"<h2><span style=\"color: #800000;\">Activate Virtual Environment Python : Activate, Deactivate, And Delete Python Venv<\/span><\/h2>\n<p><em><strong>The module used to create and manage virtual environments is called\u00a0<a class=\"reference internal\" title=\"venv: Creation of virtual environments.\" href=\"https:\/\/docs.python.org\/3\/library\/venv.html#module-venv\"><code class=\"xref py py-mod docutils literal notranslate\"><span class=\"pre\">venv<\/span><\/code><\/a>.\u00a0Python applications will often use packages and modules that don\u2019t come as part of the standard library. <\/strong><\/em><\/p>\n<p>Applications will sometimes need a specific version of a library, because the application may require that a particular bug has been fixed or the application may be written using an obsolete version of the library\u2019s interface.<\/p>\n<p>This means it may not be possible for one Python installation to meet the requirements of every application. If application A needs version 1.0 of a particular module but application B needs version 2.0, then the requirements are in conflict and installing either version 1.0 or 2.0 will leave one application unable to run.<\/p>\n<p>The solution for this problem is to create a\u00a0<span class=\"xref std std-term\">virtual environment<\/span>, a self-contained directory tree that contains a Python installation for a particular version of Python, plus a number of additional packages.<\/p>\n<p>Different applications can then use different virtual environments. To resolve the earlier example of conflicting requirements, application A can have its own virtual environment with version 1.0 installed while application B has another virtual environment with version 2.0. If application B requires a library be upgraded to version 3.0, this will not affect application A\u2019s environment.<\/p>\n<h2><span style=\"color: #800000;\">Creating Virtual Environments<\/span><\/h2>\n<p>The module used to create and manage virtual environments is called\u00a0<a class=\"reference internal\" title=\"venv: Creation of virtual environments.\" href=\"https:\/\/docs.python.org\/3\/library\/venv.html#module-venv\"><code class=\"xref py py-mod docutils literal notranslate\"><span class=\"pre\">venv<\/span><\/code><\/a>.\u00a0<a class=\"reference internal\" title=\"venv: Creation of virtual environments.\" href=\"https:\/\/docs.python.org\/3\/library\/venv.html#module-venv\"><code class=\"xref py py-mod docutils literal notranslate\"><span class=\"pre\">venv<\/span><\/code><\/a>\u00a0will usually install the most recent version of Python that you have available. If you have multiple versions of Python on your system, you can select a specific Python version by running\u00a0<code class=\"docutils literal notranslate\"><span class=\"pre\">python3<\/span><\/code>\u00a0or whichever version you want.<\/p>\n<p>To create a virtual environment, decide upon a directory where you want to place it, and run the\u00a0<a class=\"reference internal\" title=\"venv: Creation of virtual environments.\" href=\"https:\/\/docs.python.org\/3\/library\/venv.html#module-venv\"><code class=\"xref py py-mod docutils literal notranslate\"><span class=\"pre\">venv<\/span><\/code><\/a> module as a script with the directory path:-<\/p>\n<div class=\"highlight-python3 notranslate\">\n<div class=\"highlight\">\n<pre><span class=\"n\">python3<\/span> <span class=\"o\">-<\/span><span class=\"n\">m<\/span> <span class=\"n\">venv<\/span> <span class=\"n\">tutorial<\/span><span class=\"o\">-<\/span><span class=\"n\">env<\/span>\r\n<\/pre>\n<\/div>\n<\/div>\n<p>This will create the\u00a0<code class=\"docutils literal notranslate\"><span class=\"pre\">tutorial-env<\/span><\/code>\u00a0directory if it doesn\u2019t exist, and also create directories inside it containing a copy of the Python interpreter and various supporting files.<\/p>\n<p>A common directory location for a virtual environment is\u00a0<code class=\"docutils literal notranslate\"><span class=\"pre\">.venv<\/span><\/code>. This name keeps the directory typically hidden in your shell and thus out of the way while giving it a name that explains why the directory exists. It also prevents clashing with\u00a0<code class=\"docutils literal notranslate\"><span class=\"pre\">.env<\/span><\/code> environment variable definition files that some tooling supports<\/p>\n<p>Once you\u2019ve created a virtual environment, you may activate it.<\/p>\n<p>On Windows, run:<\/p>\n<div class=\"highlight-python3 notranslate\">\n<div class=\"highlight\">\n<pre><span class=\"n\">tutorial<\/span><span class=\"o\">-<\/span><span class=\"n\">env<\/span>\\<span class=\"n\">Scripts<\/span>\\<span class=\"n\">activate<\/span><span class=\"o\">.<\/span><span class=\"n\">bat<\/span>\r\n<\/pre>\n<\/div>\n<\/div>\n<p>On Unix or MacOS, run:<\/p>\n<div class=\"highlight-python3 notranslate\">\n<div class=\"highlight\">\n<pre><span class=\"n\">source<\/span> <span class=\"n\">tutorial<\/span><span class=\"o\">-<\/span><span class=\"n\">env<\/span><span class=\"o\">\/<\/span><span class=\"nb\">bin<\/span><span class=\"o\">\/<\/span><span class=\"n\">activate<\/span>\r\n<\/pre>\n<\/div>\n<\/div>\n<p>(This script is written for the bash shell. If you use the\u00a0<strong class=\"program\">csh<\/strong>\u00a0or\u00a0<strong class=\"program\">fish<\/strong>\u00a0shells, there are alternate\u00a0<code class=\"docutils literal notranslate\"><span class=\"pre\">activate.csh<\/span><\/code>\u00a0and\u00a0<code class=\"docutils literal notranslate\"><span class=\"pre\">activate.fish<\/span><\/code>\u00a0scripts you should use instead.)<\/p>\n<p>Activating the virtual environment will change your shell\u2019s prompt to show what virtual environment you\u2019re using, and modify the environment so that running\u00a0<code class=\"docutils literal notranslate\"><span class=\"pre\">python<\/span><\/code>\u00a0will get you that particular version and installation of Python. For example:<\/p>\n<div class=\"highlight-bash notranslate\">\n<div class=\"highlight\">\n<pre>$ <span class=\"nb\">source<\/span> ~\/envs\/tutorial-env\/bin\/activate\r\n<span class=\"o\">(<\/span>tutorial-env<span class=\"o\">)<\/span> $ python\r\nPython <span class=\"m\">3<\/span>.5.1 <span class=\"o\">(<\/span>default, May  <span class=\"m\">6<\/span> <span class=\"m\">2016<\/span>, <span class=\"m\">10<\/span>:59:36<span class=\"o\">)<\/span>\r\n  ...\r\n&gt;&gt;&gt; import sys\r\n&gt;&gt;&gt; sys.path\r\n<span class=\"o\">[<\/span><span class=\"s1\">''<\/span>, <span class=\"s1\">'\/usr\/local\/lib\/python35.zip'<\/span>, ...,\r\n<span class=\"s1\">'~\/envs\/tutorial-env\/lib\/python3.5\/site-packages'<\/span><span class=\"o\">]<\/span>\r\n&gt;&gt;&gt;\r\n\r\n<\/pre>\n<h2><span style=\"color: #800000;\">Activate Venv:<\/span><\/h2>\n<p>run this code it will get activated if you on a windows machine<br \/>\n<code>source venv\/Scripts\/activate<\/code><\/p>\n<pre><img decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/i.stack.imgur.com\/5HNSg.png\" alt=\"enter image description here\" \/><\/pre>\n<p>run this code it will get activated if you on a linux\/mac machine<br \/>\n<code>. venv\/bin\/activate<\/code><\/p>\n<p><img decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/i.stack.imgur.com\/ECNHm.png\" alt=\"enter image description here\" \/><\/p>\n<h2><span style=\"color: #800000;\"><strong>For Windows You can perform as:<\/strong><\/span><\/h2>\n<p>TO create the virtual env as: virtualenv envName \u2013python=python.exe (if not create environment variable)<\/p>\n<blockquote><p>To activate the virtual env : &gt; \\path\\to\\envName\\Scripts\\activate<\/p>\n<p>To deactivate the virtual env : &gt; \\path\\to\\env\\Scripts\\deactivate<\/p><\/blockquote>\n<p>It fine works on the new python version .<\/p>\n<h2><span style=\"color: #800000;\">Managing Packages with pip<\/span><\/h2>\n<p>You can install, upgrade, and remove packages using a program called\u00a0<strong class=\"program\">pip<\/strong>. By default\u00a0<code class=\"docutils literal notranslate\"><span class=\"pre\">pip<\/span><\/code>\u00a0will install packages from the Python Package Index, &lt;<a class=\"reference external\" href=\"https:\/\/pypi.org\/\">https:\/\/pypi.org<\/a>&gt;. You can browse the Python Package Index by going to it in your web browser.<\/p>\n<p><code class=\"docutils literal notranslate\"><span class=\"pre\">pip<\/span><\/code> has a number of subcommands: \u201cinstall\u201d, \u201cuninstall\u201d, \u201cfreeze\u201d, etc.<\/p>\n<p>You can install the latest version of a package by specifying a package\u2019s name:<\/p>\n<div class=\"highlight-bash notranslate\">\n<div class=\"highlight\">\n<pre><span class=\"o\">(<\/span>tutorial-env<span class=\"o\">)<\/span> $ python -m pip install novas\r\nCollecting novas\r\n  Downloading novas-3.1.1.3.tar.gz <span class=\"o\">(<\/span>136kB<span class=\"o\">)<\/span>\r\nInstalling collected packages: novas\r\n  Running setup.py install <span class=\"k\">for<\/span> novas\r\nSuccessfully installed novas-3.1.1.3\r\n<\/pre>\n<\/div>\n<\/div>\n<p>You can also install a specific version of a package by giving the package name followed by\u00a0<code class=\"docutils literal notranslate\"><span class=\"pre\">==<\/span><\/code>\u00a0and the version number:<\/p>\n<div class=\"highlight-bash notranslate\">\n<div class=\"highlight\">\n<pre><span class=\"o\">(<\/span>tutorial-env<span class=\"o\">)<\/span> $ python -m pip install <span class=\"nv\">requests<\/span><span class=\"o\">==<\/span><span class=\"m\">2<\/span>.6.0\r\nCollecting <span class=\"nv\">requests<\/span><span class=\"o\">==<\/span><span class=\"m\">2<\/span>.6.0\r\n  Using cached requests-2.6.0-py2.py3-none-any.whl\r\nInstalling collected packages: requests\r\nSuccessfully installed requests-2.6.0\r\n<\/pre>\n<\/div>\n<\/div>\n<p>If you re-run this command,\u00a0<code class=\"docutils literal notranslate\"><span class=\"pre\">pip<\/span><\/code>\u00a0will notice that the requested version is already installed and do nothing. You can supply a different version number to get that version, or you can run\u00a0<code class=\"docutils literal notranslate\"><span class=\"pre\">pip<\/span>\u00a0<span class=\"pre\">install<\/span>\u00a0<span class=\"pre\">--upgrade<\/span><\/code>\u00a0to upgrade the package to the latest version:<\/p>\n<div class=\"highlight-bash notranslate\">\n<div class=\"highlight\">\n<pre><span class=\"o\">(<\/span>tutorial-env<span class=\"o\">)<\/span> $ python -m pip install --upgrade requests\r\nCollecting requests\r\nInstalling collected packages: requests\r\n  Found existing installation: requests <span class=\"m\">2<\/span>.6.0\r\n    Uninstalling requests-2.6.0:\r\n      Successfully uninstalled requests-2.6.0\r\nSuccessfully installed requests-2.7.0\r\n<\/pre>\n<\/div>\n<\/div>\n<p><code class=\"docutils literal notranslate\"><span class=\"pre\">pip<\/span>\u00a0<span class=\"pre\">uninstall<\/span><\/code>\u00a0followed by one or more package names will remove the packages from the virtual environment.<\/p>\n<p><code class=\"docutils literal notranslate\"><span class=\"pre\">pip<\/span>\u00a0<span class=\"pre\">show<\/span><\/code>\u00a0will display information about a particular package:<\/p>\n<div class=\"highlight-bash notranslate\">\n<div class=\"highlight\">\n<pre><span class=\"o\">(<\/span>tutorial-env<span class=\"o\">)<\/span> $ pip show requests\r\n---\r\nMetadata-Version: <span class=\"m\">2<\/span>.0\r\nName: requests\r\nVersion: <span class=\"m\">2<\/span>.7.0\r\nSummary: Python HTTP <span class=\"k\">for<\/span> Humans.\r\nHome-page: http:\/\/python-requests.org\r\nAuthor: Kenneth Reitz\r\nAuthor-email: me@kennethreitz.com\r\nLicense: Apache <span class=\"m\">2<\/span>.0\r\nLocation: \/Users\/akuchling\/envs\/tutorial-env\/lib\/python3.4\/site-packages\r\nRequires:\r\n<\/pre>\n<\/div>\n<\/div>\n<p><code class=\"docutils literal notranslate\"><span class=\"pre\">pip<\/span>\u00a0<span class=\"pre\">list<\/span><\/code>\u00a0will display all of the packages installed in the virtual environment:<\/p>\n<div class=\"highlight-bash notranslate\">\n<div class=\"highlight\">\n<pre><span class=\"o\">(<\/span>tutorial-env<span class=\"o\">)<\/span> $ pip list\r\nnovas <span class=\"o\">(<\/span><span class=\"m\">3<\/span>.1.1.3<span class=\"o\">)<\/span>\r\nnumpy <span class=\"o\">(<\/span><span class=\"m\">1<\/span>.9.2<span class=\"o\">)<\/span>\r\npip <span class=\"o\">(<\/span><span class=\"m\">7<\/span>.0.3<span class=\"o\">)<\/span>\r\nrequests <span class=\"o\">(<\/span><span class=\"m\">2<\/span>.7.0<span class=\"o\">)<\/span>\r\nsetuptools <span class=\"o\">(<\/span><span class=\"m\">16<\/span>.0<span class=\"o\">)<\/span>\r\n<\/pre>\n<\/div>\n<\/div>\n<p><code class=\"docutils literal notranslate\"><span class=\"pre\">pip<\/span>\u00a0<span class=\"pre\">freeze<\/span><\/code>\u00a0will produce a similar list of the installed packages, but the output uses the format that\u00a0<code class=\"docutils literal notranslate\"><span class=\"pre\">pip<\/span>\u00a0<span class=\"pre\">install<\/span><\/code>\u00a0expects. A common convention is to put this list in a\u00a0<code class=\"docutils literal notranslate\"><span class=\"pre\">requirements.txt<\/span><\/code>\u00a0file:<\/p>\n<div class=\"highlight-bash notranslate\">\n<div class=\"highlight\">\n<pre><span class=\"o\">(<\/span>tutorial-env<span class=\"o\">)<\/span> $ pip freeze &gt; requirements.txt\r\n<span class=\"o\">(<\/span>tutorial-env<span class=\"o\">)<\/span> $ cat requirements.txt\r\n<span class=\"nv\">novas<\/span><span class=\"o\">==<\/span><span class=\"m\">3<\/span>.1.1.3\r\n<span class=\"nv\">numpy<\/span><span class=\"o\">==<\/span><span class=\"m\">1<\/span>.9.2\r\n<span class=\"nv\">requests<\/span><span class=\"o\">==<\/span><span class=\"m\">2<\/span>.7.0\r\n<\/pre>\n<\/div>\n<\/div>\n<p>The\u00a0<code class=\"docutils literal notranslate\"><span class=\"pre\">requirements.txt<\/span><\/code>\u00a0can then be committed to version control and shipped as part of an application. Users can then install all the necessary packages with\u00a0<code class=\"docutils literal notranslate\"><span class=\"pre\">install<\/span>\u00a0<span class=\"pre\">-r<\/span><\/code>:<\/p>\n<div class=\"highlight-bash notranslate\">\n<div class=\"highlight\">\n<pre><span class=\"o\">(<\/span>tutorial-env<span class=\"o\">)<\/span> $ python -m pip install -r requirements.txt\r\nCollecting <span class=\"nv\">novas<\/span><span class=\"o\">==<\/span><span class=\"m\">3<\/span>.1.1.3 <span class=\"o\">(<\/span>from -r requirements.txt <span class=\"o\">(<\/span>line <span class=\"m\">1<\/span><span class=\"o\">))<\/span>\r\n  ...\r\nCollecting <span class=\"nv\">numpy<\/span><span class=\"o\">==<\/span><span class=\"m\">1<\/span>.9.2 <span class=\"o\">(<\/span>from -r requirements.txt <span class=\"o\">(<\/span>line <span class=\"m\">2<\/span><span class=\"o\">))<\/span>\r\n  ...\r\nCollecting <span class=\"nv\">requests<\/span><span class=\"o\">==<\/span><span class=\"m\">2<\/span>.7.0 <span class=\"o\">(<\/span>from -r requirements.txt <span class=\"o\">(<\/span>line <span class=\"m\">3<\/span><span class=\"o\">))<\/span>\r\n  ...\r\nInstalling collected packages: novas, numpy, requests\r\n  Running setup.py install <span class=\"k\">for<\/span> novas\r\nSuccessfully installed novas-3.1.1.3 numpy-1.9.2 requests-2.7.0\r\n<\/pre>\n<\/div>\n<\/div>\n<p><code class=\"docutils literal notranslate\"><span class=\"pre\">pip<\/span><\/code>\u00a0has many more options. Consult the\u00a0<a class=\"reference internal\" href=\"https:\/\/docs.python.org\/3\/installing\/index.html#installing-index\"><span class=\"std std-ref\">Installing Python Modules<\/span><\/a>\u00a0guide for complete documentation for\u00a0<code class=\"docutils literal notranslate\"><span class=\"pre\">pip<\/span><\/code>.<\/p>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Activate Virtual Environment Python : Activate, Deactivate, And Delete Python Venv The module used to create and manage virtual environments is called\u00a0venv.\u00a0Python applications will often use packages and modules that&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[],"class_list":["post-35858","post","type-post","status-publish","format-standard","hentry","category-news"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v27.2 (Yoast SEO v27.2) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>Activate Virtual Environment Python : Activate, Deactivate, And Delete Python Venv - Seminarsonly.com<\/title>\n<meta name=\"description\" content=\"The module used to create and manage virtual environments is called\u00a0venv.\u00a0Python applications will often use packages and modules that don\u2019t come as part of the standard library.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/seminarsonly.com\/news\/activate-virtual-environment-python-activate-deactivate-and-delete-python-venv\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Activate Virtual Environment Python : Activate, Deactivate, And Delete Python Venv\" \/>\n<meta property=\"og:description\" content=\"The module used to create and manage virtual environments is called\u00a0venv.\u00a0Python applications will often use packages and modules that don\u2019t come as part of the standard library.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/seminarsonly.com\/news\/activate-virtual-environment-python-activate-deactivate-and-delete-python-venv\/\" \/>\n<meta property=\"og:site_name\" content=\"Seminarsonly.com\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/facebook.com\/seminarsonly\" \/>\n<meta property=\"article:published_time\" content=\"2023-03-20T16:18:16+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-03-20T16:19:55+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/i.stack.imgur.com\/5HNSg.png\" \/>\n<meta name=\"author\" content=\"Freddy John\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@seminarsonly\" \/>\n<meta name=\"twitter:site\" content=\"@seminarsonly\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Freddy John\" \/>\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:\/\/seminarsonly.com\/news\/activate-virtual-environment-python-activate-deactivate-and-delete-python-venv\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/seminarsonly.com\/news\/activate-virtual-environment-python-activate-deactivate-and-delete-python-venv\/\"},\"author\":{\"name\":\"Freddy John\",\"@id\":\"https:\/\/seminarsonly.com\/news\/#\/schema\/person\/75cf706896b7210fb0a84651adc258bd\"},\"headline\":\"Activate Virtual Environment Python : Activate, Deactivate, And Delete Python Venv\",\"datePublished\":\"2023-03-20T16:18:16+00:00\",\"dateModified\":\"2023-03-20T16:19:55+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/seminarsonly.com\/news\/activate-virtual-environment-python-activate-deactivate-and-delete-python-venv\/\"},\"wordCount\":768,\"commentCount\":0,\"image\":{\"@id\":\"https:\/\/seminarsonly.com\/news\/activate-virtual-environment-python-activate-deactivate-and-delete-python-venv\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/i.stack.imgur.com\/5HNSg.png\",\"articleSection\":[\"news\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/seminarsonly.com\/news\/activate-virtual-environment-python-activate-deactivate-and-delete-python-venv\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/seminarsonly.com\/news\/activate-virtual-environment-python-activate-deactivate-and-delete-python-venv\/\",\"url\":\"https:\/\/seminarsonly.com\/news\/activate-virtual-environment-python-activate-deactivate-and-delete-python-venv\/\",\"name\":\"Activate Virtual Environment Python : Activate, Deactivate, And Delete Python Venv - Seminarsonly.com\",\"isPartOf\":{\"@id\":\"https:\/\/seminarsonly.com\/news\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/seminarsonly.com\/news\/activate-virtual-environment-python-activate-deactivate-and-delete-python-venv\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/seminarsonly.com\/news\/activate-virtual-environment-python-activate-deactivate-and-delete-python-venv\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/i.stack.imgur.com\/5HNSg.png\",\"datePublished\":\"2023-03-20T16:18:16+00:00\",\"dateModified\":\"2023-03-20T16:19:55+00:00\",\"author\":{\"@id\":\"https:\/\/seminarsonly.com\/news\/#\/schema\/person\/75cf706896b7210fb0a84651adc258bd\"},\"description\":\"The module used to create and manage virtual environments is called\u00a0venv.\u00a0Python applications will often use packages and modules that don\u2019t come as part of the standard library.\",\"breadcrumb\":{\"@id\":\"https:\/\/seminarsonly.com\/news\/activate-virtual-environment-python-activate-deactivate-and-delete-python-venv\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/seminarsonly.com\/news\/activate-virtual-environment-python-activate-deactivate-and-delete-python-venv\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/seminarsonly.com\/news\/activate-virtual-environment-python-activate-deactivate-and-delete-python-venv\/#primaryimage\",\"url\":\"https:\/\/i.stack.imgur.com\/5HNSg.png\",\"contentUrl\":\"https:\/\/i.stack.imgur.com\/5HNSg.png\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/seminarsonly.com\/news\/activate-virtual-environment-python-activate-deactivate-and-delete-python-venv\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/seminarsonly.com\/news\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Activate Virtual Environment Python : Activate, Deactivate, And Delete Python Venv\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/seminarsonly.com\/news\/#website\",\"url\":\"https:\/\/seminarsonly.com\/news\/\",\"name\":\"Seminarsonly.com\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/seminarsonly.com\/news\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/seminarsonly.com\/news\/#\/schema\/person\/75cf706896b7210fb0a84651adc258bd\",\"name\":\"Freddy John\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/secure.gravatar.com\/avatar\/671d452f5fe9027ab894cbed50911cc764b2c16878222070bf044f21705d4c94?s=96&d=mm&r=g\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/671d452f5fe9027ab894cbed50911cc764b2c16878222070bf044f21705d4c94?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/671d452f5fe9027ab894cbed50911cc764b2c16878222070bf044f21705d4c94?s=96&d=mm&r=g\",\"caption\":\"Freddy John\"},\"sameAs\":[\"https:\/\/seminarsonly.com\/news\"],\"url\":\"https:\/\/seminarsonly.com\/news\/author\/anupvnaick_51wq8y4s\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Activate Virtual Environment Python : Activate, Deactivate, And Delete Python Venv - Seminarsonly.com","description":"The module used to create and manage virtual environments is called\u00a0venv.\u00a0Python applications will often use packages and modules that don\u2019t come as part of the standard library.","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:\/\/seminarsonly.com\/news\/activate-virtual-environment-python-activate-deactivate-and-delete-python-venv\/","og_locale":"en_US","og_type":"article","og_title":"Activate Virtual Environment Python : Activate, Deactivate, And Delete Python Venv","og_description":"The module used to create and manage virtual environments is called\u00a0venv.\u00a0Python applications will often use packages and modules that don\u2019t come as part of the standard library.","og_url":"https:\/\/seminarsonly.com\/news\/activate-virtual-environment-python-activate-deactivate-and-delete-python-venv\/","og_site_name":"Seminarsonly.com","article_publisher":"https:\/\/facebook.com\/seminarsonly","article_published_time":"2023-03-20T16:18:16+00:00","article_modified_time":"2023-03-20T16:19:55+00:00","og_image":[{"url":"https:\/\/i.stack.imgur.com\/5HNSg.png","type":"","width":"","height":""}],"author":"Freddy John","twitter_card":"summary_large_image","twitter_creator":"@seminarsonly","twitter_site":"@seminarsonly","twitter_misc":{"Written by":"Freddy John","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/seminarsonly.com\/news\/activate-virtual-environment-python-activate-deactivate-and-delete-python-venv\/#article","isPartOf":{"@id":"https:\/\/seminarsonly.com\/news\/activate-virtual-environment-python-activate-deactivate-and-delete-python-venv\/"},"author":{"name":"Freddy John","@id":"https:\/\/seminarsonly.com\/news\/#\/schema\/person\/75cf706896b7210fb0a84651adc258bd"},"headline":"Activate Virtual Environment Python : Activate, Deactivate, And Delete Python Venv","datePublished":"2023-03-20T16:18:16+00:00","dateModified":"2023-03-20T16:19:55+00:00","mainEntityOfPage":{"@id":"https:\/\/seminarsonly.com\/news\/activate-virtual-environment-python-activate-deactivate-and-delete-python-venv\/"},"wordCount":768,"commentCount":0,"image":{"@id":"https:\/\/seminarsonly.com\/news\/activate-virtual-environment-python-activate-deactivate-and-delete-python-venv\/#primaryimage"},"thumbnailUrl":"https:\/\/i.stack.imgur.com\/5HNSg.png","articleSection":["news"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/seminarsonly.com\/news\/activate-virtual-environment-python-activate-deactivate-and-delete-python-venv\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/seminarsonly.com\/news\/activate-virtual-environment-python-activate-deactivate-and-delete-python-venv\/","url":"https:\/\/seminarsonly.com\/news\/activate-virtual-environment-python-activate-deactivate-and-delete-python-venv\/","name":"Activate Virtual Environment Python : Activate, Deactivate, And Delete Python Venv - Seminarsonly.com","isPartOf":{"@id":"https:\/\/seminarsonly.com\/news\/#website"},"primaryImageOfPage":{"@id":"https:\/\/seminarsonly.com\/news\/activate-virtual-environment-python-activate-deactivate-and-delete-python-venv\/#primaryimage"},"image":{"@id":"https:\/\/seminarsonly.com\/news\/activate-virtual-environment-python-activate-deactivate-and-delete-python-venv\/#primaryimage"},"thumbnailUrl":"https:\/\/i.stack.imgur.com\/5HNSg.png","datePublished":"2023-03-20T16:18:16+00:00","dateModified":"2023-03-20T16:19:55+00:00","author":{"@id":"https:\/\/seminarsonly.com\/news\/#\/schema\/person\/75cf706896b7210fb0a84651adc258bd"},"description":"The module used to create and manage virtual environments is called\u00a0venv.\u00a0Python applications will often use packages and modules that don\u2019t come as part of the standard library.","breadcrumb":{"@id":"https:\/\/seminarsonly.com\/news\/activate-virtual-environment-python-activate-deactivate-and-delete-python-venv\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/seminarsonly.com\/news\/activate-virtual-environment-python-activate-deactivate-and-delete-python-venv\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/seminarsonly.com\/news\/activate-virtual-environment-python-activate-deactivate-and-delete-python-venv\/#primaryimage","url":"https:\/\/i.stack.imgur.com\/5HNSg.png","contentUrl":"https:\/\/i.stack.imgur.com\/5HNSg.png"},{"@type":"BreadcrumbList","@id":"https:\/\/seminarsonly.com\/news\/activate-virtual-environment-python-activate-deactivate-and-delete-python-venv\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/seminarsonly.com\/news\/"},{"@type":"ListItem","position":2,"name":"Activate Virtual Environment Python : Activate, Deactivate, And Delete Python Venv"}]},{"@type":"WebSite","@id":"https:\/\/seminarsonly.com\/news\/#website","url":"https:\/\/seminarsonly.com\/news\/","name":"Seminarsonly.com","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/seminarsonly.com\/news\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/seminarsonly.com\/news\/#\/schema\/person\/75cf706896b7210fb0a84651adc258bd","name":"Freddy John","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/671d452f5fe9027ab894cbed50911cc764b2c16878222070bf044f21705d4c94?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/671d452f5fe9027ab894cbed50911cc764b2c16878222070bf044f21705d4c94?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/671d452f5fe9027ab894cbed50911cc764b2c16878222070bf044f21705d4c94?s=96&d=mm&r=g","caption":"Freddy John"},"sameAs":["https:\/\/seminarsonly.com\/news"],"url":"https:\/\/seminarsonly.com\/news\/author\/anupvnaick_51wq8y4s\/"}]}},"_links":{"self":[{"href":"https:\/\/seminarsonly.com\/news\/wp-json\/wp\/v2\/posts\/35858","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/seminarsonly.com\/news\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/seminarsonly.com\/news\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/seminarsonly.com\/news\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/seminarsonly.com\/news\/wp-json\/wp\/v2\/comments?post=35858"}],"version-history":[{"count":0,"href":"https:\/\/seminarsonly.com\/news\/wp-json\/wp\/v2\/posts\/35858\/revisions"}],"wp:attachment":[{"href":"https:\/\/seminarsonly.com\/news\/wp-json\/wp\/v2\/media?parent=35858"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/seminarsonly.com\/news\/wp-json\/wp\/v2\/categories?post=35858"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/seminarsonly.com\/news\/wp-json\/wp\/v2\/tags?post=35858"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}