pipreqs icon indicating copy to clipboard operation
pipreqs copied to clipboard

pipreqs not capturing all imports

Open srishti0190 opened this issue 6 years ago • 7 comments

In my code I wanted to create a requirements.txt file with all the dependencies needed to run my model. I used pip freeze earlier, however, because of obvious reasons i.e. it captures everything from the environment and not just the ones needed for my model, I moved to pipreqs.

I tested it with a very basic .py file with some imports, out of those the following is not getting captured correctly: import cv2

The problem I faces is: It fails to capture opencv-python for cv2.

Below error is thrown: DEBUG: Starting new HTTPS connection (1): pypi.org DEBUG: https://pypi.org:443 "GET /cv2/json HTTP/1.1" 404 1443 DEBUG: Package cv2 does not exist or network problems

Can anyone help here.

srishti0190 avatar Jun 14 '18 07:06 srishti0190

Same issue, can someone report what is the issue here?

Sohaib90 avatar Dec 07 '18 12:12 Sohaib90

Related to cv2, pipreqs should ideally figure out whether opencv-contrib-python is needed (or default to that) instead of installing only opencv-python.

bersbersbers avatar Feb 24 '20 12:02 bersbersbers

This issue still exists in the latest version.

gromain avatar Feb 25 '22 10:02 gromain

same issue here

FRIKIdelTO avatar Apr 09 '22 16:04 FRIKIdelTO

Same issue

aw632 avatar Jul 15 '22 03:07 aw632

same issue as well for version pipreqs==0.4.11

cjj1120 avatar Nov 22 '22 05:11 cjj1120

same issue as well for version pipreqs==0.4.11

Me facing problem too

OmAximani0 avatar Feb 09 '23 20:02 OmAximani0