If that&#x27;s the desired behavior, it&#x27;s already pretty easy by piping the outdated package list into upgrade.<p><pre><code>   pip list --outdated | sed &#x27;s&#x2F;(.*&#x2F;&#x2F;g&#x27; | xargs pip install -U
   pip freeze &gt; requirements.txt
</code></pre>
From <a href="http:&#x2F;&#x2F;stackoverflow.com&#x2F;a&#x2F;22260015&#x2F;149428" rel="nofollow">http:&#x2F;&#x2F;stackoverflow.com&#x2F;a&#x2F;22260015&#x2F;149428</a><p>Another similar easy option is pip-review.<p><a href="https:&#x2F;&#x2F;github.com&#x2F;jgonggrijp&#x2F;pip-review" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;jgonggrijp&#x2F;pip-review</a>