title: How to exclude a package that exists on requirements.txt during installation?
body: <p>There is a question <a href="https://stackoverflow.com/q/70430119/8523960">here</a> about <code>freezing into requirements.txt</code> but this one is about <code>installing from requirements.txt</code>.
  I have a <code>requirements.txt</code> file on a remote server with:</p>
  <p><code>Pillow==8.2.0</code><br />
  <code>nltk==3.6.2</code><br />
  <code>notebook==6.4.0</code>    #&lt;--- exclude this<br />
  <code>numpy==1.19.5</code></p>
  <p>&amp; then I realize that I want to exclude <code>notebook==6.4.0</code> while running<br />
  <code>pip install -r requirements.txt</code>. How can we achieve this?</p>
  <p><strong>One Possibility</strong>: I could <code>comment</code> or <code>delete</code> the unwanted package from the <code>local server's requirements.txt</code> &amp; then git-pushing back to remote server. How can I exclude a package without having to go to the local server? Thank you.</p>