<a href="https:&#x2F;&#x2F;gist.github.com&#x2F;dwiel&#x2F;7a2c0163b802e1cea0f6" rel="nofollow">https:&#x2F;&#x2F;gist.github.com&#x2F;dwiel&#x2F;7a2c0163b802e1cea0f6</a><p>Instead of requirements.txt we use py.prereqs, but otherwise this script should get you close.