-
Notifications
You must be signed in to change notification settings - Fork 404
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pipreqs reporting same module with two versions #434
Comments
I have a similar issue to the one above, although mine is only for 1 and the version difference is larger than ..1 |
I have same problem numpy is reported twice.
It should give 1.24.1 which is installed in global. 1.21.5 is in a conda environment that is not even activated |
I identified where the problem is. pipreqs will check all directories in import sys
print(sys.path) Sometimes you have different versions of packages but python will only use one of them. However pipreqs will report all of them. The fix is easy: just delete the ones not in use. |
Can the actions be done by pipreqs? |
I ran pipreqs for the first time, and after fixing some syntax errors it found in my code, it spat out a shorter list than I expected (haven't confirmed anything is missing yet), but what really caught my attention was it repeated two modules with two versions.
Output:
As you can see, GitPython and PySide6 are both repeated with slightly differing versions.
Output from the terminal:
While it does say "Please, verify manually the final list of requirements.txt to avoid possible dependency confusions." this is repeated for every version it found, so this is not a useful warning. These warnings seem more like normal operation too, not a warning.
The text was updated successfully, but these errors were encountered: