<instructions>Your goal is to analyze the following comment and estimate how highly it will be upvoted by the Hacker News community.</instructions><comment><author>noitpmeder</author><text>&lt;p&gt;&lt;pre&gt;&lt;code&gt;   &amp;quot; you can assume that there is an interpreter available on the system, say &amp;#x2F;usr&amp;#x2F;bin&amp;#x2F;python3, you can use that instead of creating a virtual environment.&amp;quot;
&lt;/code&gt;&lt;/pre&gt;
Please DO NOT do this. It is so much easier to always create a virtual environment, and then you never have to worry about installing two applications on the same system that may have conflicting versions. Additionally, you don&amp;#x27;t know what else may be installed into the system&amp;#x27;s default python environment.</text><parent_chain><item><author>user5994461</author><text>1) Create a virtual environment. python3 -m venv myproject (download an interpreter).&lt;p&gt;2) Run pip install. myproject&amp;#x2F;bin&amp;#x2F;activate; pip install requirements.txt; (download all project dependencies).&lt;p&gt;3) Start the application. myproject&amp;#x2F;bin&amp;#x2F;activate; python myapp.py&lt;p&gt;If you can assume that there is an interpreter available on the system, say &amp;#x2F;usr&amp;#x2F;bin&amp;#x2F;python3, you can use that instead of creating a virtual environment.&lt;p&gt;If you want to embed all the dependencies, you can save all the files created by pip install in the &amp;#x2F;lib directory if I remember the name well.&lt;p&gt;Should I write a full blog post with example? I used to deploy python applications in a bank, can explain all the advanced usage with and without internet access, with and without dependencies.</text></item><item><author>dillonmckay</author><text>Man, personally, with Python, programming with the language seems to be the easy part.&lt;p&gt;I have struggled with virtual environments and runtime executables across various OSs.&lt;p&gt;What are current best practices?</text></item></parent_chain></comment><story><title>Show HN: A platform for beginners to learn programming in Python</title><url>https://github.com/alexmojaki/futurecoder</url></story>
<instructions>Your goal is to analyze the following comment and estimate how highly it will be upvoted by the Hacker News community.</instructions><comment><author>simonebrunozzi</author><text>Yes, please.&lt;p&gt;Aaaand, now that you&amp;#x27;re at it, a single .dmg file for MacOS with binaries and scripts so us lazy people with Macbooks can start coding right away :) (it might be a bit inaccurate but I guess you know what I mean)</text><parent_chain><item><author>user5994461</author><text>1) Create a virtual environment. python3 -m venv myproject (download an interpreter).&lt;p&gt;2) Run pip install. myproject&amp;#x2F;bin&amp;#x2F;activate; pip install requirements.txt; (download all project dependencies).&lt;p&gt;3) Start the application. myproject&amp;#x2F;bin&amp;#x2F;activate; python myapp.py&lt;p&gt;If you can assume that there is an interpreter available on the system, say &amp;#x2F;usr&amp;#x2F;bin&amp;#x2F;python3, you can use that instead of creating a virtual environment.&lt;p&gt;If you want to embed all the dependencies, you can save all the files created by pip install in the &amp;#x2F;lib directory if I remember the name well.&lt;p&gt;Should I write a full blog post with example? I used to deploy python applications in a bank, can explain all the advanced usage with and without internet access, with and without dependencies.</text></item><item><author>dillonmckay</author><text>Man, personally, with Python, programming with the language seems to be the easy part.&lt;p&gt;I have struggled with virtual environments and runtime executables across various OSs.&lt;p&gt;What are current best practices?</text></item></parent_chain></comment><story><title>Show HN: A platform for beginners to learn programming in Python</title><url>https://github.com/alexmojaki/futurecoder</url></story>