{"id":256,"date":"2019-10-05T11:14:16","date_gmt":"2019-10-05T10:14:16","guid":{"rendered":"http:\/\/blog.brunocsmartin.fr\/?p=256"},"modified":"2019-10-19T10:43:45","modified_gmt":"2019-10-19T09:43:45","slug":"python-and-virtual-environment","status":"publish","type":"post","link":"https:\/\/blog.brunocsmartin.fr\/index.php\/2019\/10\/05\/python-and-virtual-environment\/","title":{"rendered":"Python virtual env and installer"},"content":{"rendered":"<p>run it :<\/p>\n<pre>$ python -m venv .env\r\n$ source .env\/bin\/activate\r\n$ pip install -r requirements.txt\r\n$ python app.py\r\n<\/pre>\n<p>&#8211; package a standalone executable<\/p>\n<pre>$ pip install pyinstaller\r\n$ pyinstaller app.spec\r\n<\/pre>\n<p>&#8211; quit virtual environment<\/p>\n<pre>$ deactivate\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>run it : $ python -m venv .env $ source .env\/bin\/activate $ pip install -r requirements.txt $ python app.py &#8211; package a standalone executable $ pip install pyinstaller $ pyinstaller app.spec &#8211; quit virtual environment $ deactivate<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-256","post","type-post","status-publish","format-standard","hentry","category-non-classe"],"_links":{"self":[{"href":"https:\/\/blog.brunocsmartin.fr\/index.php\/wp-json\/wp\/v2\/posts\/256"}],"collection":[{"href":"https:\/\/blog.brunocsmartin.fr\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.brunocsmartin.fr\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.brunocsmartin.fr\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.brunocsmartin.fr\/index.php\/wp-json\/wp\/v2\/comments?post=256"}],"version-history":[{"count":4,"href":"https:\/\/blog.brunocsmartin.fr\/index.php\/wp-json\/wp\/v2\/posts\/256\/revisions"}],"predecessor-version":[{"id":262,"href":"https:\/\/blog.brunocsmartin.fr\/index.php\/wp-json\/wp\/v2\/posts\/256\/revisions\/262"}],"wp:attachment":[{"href":"https:\/\/blog.brunocsmartin.fr\/index.php\/wp-json\/wp\/v2\/media?parent=256"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.brunocsmartin.fr\/index.php\/wp-json\/wp\/v2\/categories?post=256"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.brunocsmartin.fr\/index.php\/wp-json\/wp\/v2\/tags?post=256"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}