{"id":963,"date":"2018-03-16T11:32:56","date_gmt":"2018-03-16T10:32:56","guid":{"rendered":"http:\/\/blog.via-internet.de\/?p=963"},"modified":"2021-11-24T12:19:11","modified_gmt":"2021-11-24T11:19:11","slug":"python-3-working-with-pipenv","status":"publish","type":"post","link":"https:\/\/via-internet.de\/blog\/2018\/03\/16\/python-3-working-with-pipenv\/","title":{"rendered":"Python | Working with virtual environments"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\" id=\"introduction\">Introduction<\/h2>\n\n\n\n<ul class=\"wp-block-list\"><li>venv module<\/li><li>virtualenv<\/li><li>pipenv<\/li><\/ul>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"pipenv\">pipenv<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"introduction\">Introduction<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Pipenv<\/strong> \u2014&nbsp;the officially recommended Python packaging tool from <a class=\"reference external\" href=\"https:\/\/packaging.python.org\/tutorials\/managing-dependencies\/#managing-dependencies\">Python.org<\/a>, free (as in freedom).<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Read <a href=\"https:\/\/pipenv.readthedocs.io\/en\/latest\/\">here<\/a> how to install in details<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"installation\">Installation<\/h3>\n\n\n\n<div class=\"wp-block-columns has-2-columns is-layout-flex wp-container-core-columns-is-layout-8f761849 wp-block-columns-is-layout-flex\">\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\">\n<p class=\"wp-block-paragraph\">For Mac OS and brew package manager<\/p>\n<\/div>\n\n\n\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\">\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"shell\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">brew install pipenv<\/pre>\n<\/div>\n<\/div>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"prepare-environment\">Prepare environment<\/h3>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"venv-module\">venv module<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"installation\">Installation<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Nothing required. Module <strong>venv<\/strong> is part of the Python distribution<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"prepare-environment\">Prepare environment<\/h3>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"shell\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">python3 -m venv env<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"virtualenv\">virtualenv<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"prepare-environment\">Prepare environment<\/h3>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">$ virtualenv -p python3 .env\/python<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Introduction venv module virtualenv pipenv pipenv Introduction Pipenv \u2014&nbsp;the officially recommended Python packaging tool from Python.org, free (as in freedom). Read here how to install in details Installation For Mac OS and brew package manager Prepare environment venv module Installation Nothing required. Module venv is part of the Python distribution Prepare environment virtualenv Prepare environment<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_crdt_document":"","_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[65],"tags":[],"class_list":["post-963","post","type-post","status-publish","format-standard","hentry","category-python"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/via-internet.de\/blog\/wp-json\/wp\/v2\/posts\/963","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/via-internet.de\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/via-internet.de\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/via-internet.de\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/via-internet.de\/blog\/wp-json\/wp\/v2\/comments?post=963"}],"version-history":[{"count":1,"href":"https:\/\/via-internet.de\/blog\/wp-json\/wp\/v2\/posts\/963\/revisions"}],"predecessor-version":[{"id":8604,"href":"https:\/\/via-internet.de\/blog\/wp-json\/wp\/v2\/posts\/963\/revisions\/8604"}],"wp:attachment":[{"href":"https:\/\/via-internet.de\/blog\/wp-json\/wp\/v2\/media?parent=963"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/via-internet.de\/blog\/wp-json\/wp\/v2\/categories?post=963"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/via-internet.de\/blog\/wp-json\/wp\/v2\/tags?post=963"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}