Skip to content
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

How to add packages that have not been displayed import #103

Closed
leafney opened this issue Dec 31, 2021 · 3 comments
Closed

How to add packages that have not been displayed import #103

leafney opened this issue Dec 31, 2021 · 3 comments

Comments

@leafney
Copy link

leafney commented Dec 31, 2021

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
Copy link
Owner

damnever commented Nov 6, 2022

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

@leafney
Copy link
Author

leafney commented Nov 6, 2022

Thanks.

@damnever
Copy link
Owner

damnever commented Jun 22, 2023

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

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants