SyntaxFix
Write A Post
Hire A Developer
Questions
To run this in later versions of pip (tested on pip==10.0.1) use the following:
pip==10.0.1
from pip._internal.operations.freeze import freeze for requirement in freeze(local_only=True): print(requirement)