How do I check if a Python module is installed?

Question

Grade: Education Subject: Support
How do I check if a Python module is installed?
Asked by:
47 Viewed 47 Answers

Answer (47)

Best Answer
(278)
Use the `pip list` command in your terminal or VS Code's integrated terminal. This will list all installed packages, including the module you're trying to import. Alternatively, you can use `python -m pip show ` to get detailed information about a specific module.