Normal Classic Pip VS Pip-Compile & Pip-Sync
<p>Why should you care? Well, more companies and teams are starting to use <code>pip-compile</code> and <code>pip-sync</code> instead of the classic <code>pip freeze</code> stuff. So this could be the new norm in a couple of years. This article discusses:</p>
<ul>
<li>difference in generating <code>requirements.txt</code></li>
<li>difference in installing stuff from <code>requirements.txt</code></li>
</ul>
<h1>First things first, Python virtual environment</h1>
<pre>
python -m venv env # create a virtual Python environment named 'env'
env\Scripts\activate.bat # activating env for Windows
source env\bin\activate # activating env for MacOS/Linux</pre>
<p>It is good practice to use a Python virtual environment so that we can install certain versions of our libraries without these installations messing with our main Python interpreter.</p>
<p><a href="https://levelup.gitconnected.com/normal-classic-pip-vs-pip-compile-pip-sync-1883ef5ea8c6"><strong>Click Here</strong></a></p>