Skip to content
Advertisement

Pipreqs not including all packages?

I currently have a conda environment tf_gpu and I pip installed pipreqs in it to auto generate requirements.txt

Now, in my project folder, I have app.py with the imports :

JavaScript

Also, predict uses pandas, scipy, numpy, pickle

So, but the requirements.txt generated by pipreqs using pipreqs ./ inside the project folder only gets me the following:

JavaScript

Why is python-dotenv not included? It isnt a standard library right? So what’s happening here?

Advertisement

Answer

According to the open issues in the GitHub repo, some packages don’t map well. You could try opening an issue for this package.

User contributions licensed under: CC BY-SA
4 People found this is helpful
Advertisement