How to add packages that have not been displayed import
leafney opened this issue · 3 comments
leafney commented
Some packages are not displayed import through import
keyword , so they will be missed when generating requirements.txt
. How to solve it?
eg:
soup = BeautifulSoup(html, 'lxml')
run with command pigar
but lxml
package not found.
damnever commented
That is another magic that pigar can not handle, which should be added to FAQ https://github.com/damnever/pigar#faq
leafney commented
Thanks.
damnever commented
pip install pigar==2.1.0
has introduced an experimental feature:
soup = BeautifulSoup(html, 'lxml') # pigar: required-packages=lxml