How to add packages that have not been displayed import
leafney opened this issue · 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.
Xiaochao Dong 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.
Xiaochao Dong commented
pip install pigar==2.1.0
has introduced an experimental feature:
soup = BeautifulSoup(html, 'lxml') # pigar: required-packages=lxml