damnever / pigar

:coffee: A tool to generate requirements.txt for Python project, and more than that. (IT IS NOT A PACKAGE MANAGEMENT TOOL)

Home Page:https://damnever.github.io/pigar/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to add packages that have not been displayed import

leafney opened this issue · comments

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.

That is another magic that pigar can not handle, which should be added to FAQ https://github.com/damnever/pigar#faq

Thanks.

pip install pigar==2.1.0 has introduced an experimental feature:

soup = BeautifulSoup(html, 'lxml') # pigar: required-packages=lxml