<div><h3id="virtualenvironments">Virtual Environments</h3><p><strong>System for installing libraries directly into project's directory.</strong></p><pre><codeclass="python hljs">$ python3 -m venv NAME <spanclass="hljs-comment"># Creates virtual environment in current directory.</span>
<div><h3id="virtualenvironments">Virtual Environments</h3><p><strong>System for installing libraries directly into project's directory.</strong></p><pre><codeclass="python hljs">$ python3 -m venv NAME <spanclass="hljs-comment"># Creates virtual environment in current directory.</span>
$ source NAME/bin/activate <spanclass="hljs-comment"># Activates env. On Windows run `NAME\Scripts\activate`.</span>
$ source NAME/bin/activate <spanclass="hljs-comment"># Activates it. On Windows run `NAME\Scripts\activate`.</span>
$ pip3 install LIBRARY <spanclass="hljs-comment"># Installs the library into active environment.</span>
$ pip3 install LIBRARY <spanclass="hljs-comment"># Installs the library into active environment.</span>
$ python3 FILE <spanclass="hljs-comment"># Runs the script in active environment. Also `./FILE`.</span>
$ python3 FILE <spanclass="hljs-comment"># Runs the script in active environment. Also `./FILE`.</span>
$ deactivate <spanclass="hljs-comment"># Deactivates the active virtual environment.</span>
$ deactivate <spanclass="hljs-comment"># Deactivates the active virtual environment.</span>
@ -2942,7 +2942,7 @@ $ deactivate <span class="hljs-comment"># Deactivates the active
'<strong>For details about sort(), sorted(), min() and max() see <a href="#sortable">Sortable</a>.</strong>':'<strong>For details about sort(), sorted(), min() and max() see Sortable (p. 16).</strong>',
'<strong>For details about sort(), sorted(), min() and max() see <a href="#sortable">Sortable</a>.</strong>':'<strong>For details about sort(), sorted(), min() and max() see Sortable (p. 16).</strong>',
'<strong>Module <a href="#operator">operator</a> has function itemgetter() that can replace listed <a href="#lambda">lambdas</a>.</strong>':'<strong>Module \'operator\'(p. 31) has function itemgetter() that can replace listed lambdas (p. 11).</strong>',
'<strong>Module <a href="#operator">operator</a> has function itemgetter() that can replace listed <a href="#lambda">lambdas</a>.</strong>':'<strong>Module \'operator\' has function itemgetter() that can replace listed lambdas (p. 31).</strong>',
'<strong>This text uses the term collection instead of iterable. For rationale see <a href="#collection">Collection</a>.</strong>':'<strong>This text uses the term collection instead of iterable. For rationale see Collection (p. 18).</strong>',
'<strong>This text uses the term collection instead of iterable. For rationale see <a href="#collection">Collection</a>.</strong>':'<strong>This text uses the term collection instead of iterable. For rationale see Collection (p. 18).</strong>',
'<strong>Adding <code class="python hljs"><span class="hljs-string">\'!r\'</span></code> to the expression converts object to string by calling its <a href="#class">repr()</a> method.</strong>':'<strong>Adding <code class="python hljs"><span class="hljs-string">\'!r\'</span></code> to the expression converts object to string by calling its repr() method.</strong>',
'<strong>Adding <code class="python hljs"><span class="hljs-string">\'!r\'</span></code> to the expression converts object to string by calling its <a href="#class">repr()</a> method.</strong>':'<strong>Adding <code class="python hljs"><span class="hljs-string">\'!r\'</span></code> to the expression converts object to string by calling its repr() method.</strong>',
'<strong>It can be any <a href="#callable">callable</a>, but is usually implemented as a function that returns a <a href="#closure">closure</a>.</strong>':'<strong>It can be any callable, but is usually implemented as a function that returns a closure.</strong>',
'<strong>It can be any <a href="#callable">callable</a>, but is usually implemented as a function that returns a <a href="#closure">closure</a>.</strong>':'<strong>It can be any callable, but is usually implemented as a function that returns a closure.</strong>',