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 :
import os from dotenv import load_dotenv from flask import Flask, request from predict import get_recs import urllib.request
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:
Flask==2.1.3 numpy==1.23.3 pandas==1.4.4 scipy==1.9.1
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.