Sorry for the delayed response. I think this issue might have been fixed recently, or at least it's working for me now. I installed pipreqs using pip3 instead of the default pip, and it worked fine .
I'm trying to get all dependencies from a directory by using pipreqs. The directory is inside of a virtual env. When I run the command it creates a requirements.txt with the following content: ...