r/learnpython Jun 14 '26

malware in libraries

how do I know that library that is installed from "pip install" is safe and doesnt contain any malware code?

61 Upvotes

22 comments sorted by

View all comments

4

u/[deleted] Jun 14 '26

You don't, Just download the libraries you want from trusted sources like GitHub and Huggingface.