bndr / pipreqs

pipreqs - Generate pip requirements.txt file based on imports of any project. Looking for maintainers to move this project forward.
Apache License 2.0
6.38k stars 388 forks source link

"selenium" package is not added to "requirements.txt #368

Open WriteCoin opened 1 year ago

WriteCoin commented 1 year ago

local libraries are not added to requirements.txt Output of the pip freeze command:

...
selenium==4.2.0
...

The only file test.py in the folder test test.py:

import selenium

At the command pipreqs --use-local test requirements.txt empty

CXL-edu commented 1 year ago

I also encountered this issue. I only wrote a script program, and the import section is as follows:

import time
import winreg
import requests
import subprocess
from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.chrome.service import Service
from selenium.webdriver.common.keys import Keys

The content of the requirements. txt generated using pipreqs is as follows:

Requests==2.28.2
medaminefh commented 1 year ago

I think this is an unresolved issue in pipreqs ⛔