If I've installed the module using pip, why can't Python find it?

Question

Grade: Education Subject: Support
If I've installed the module using pip, why can't Python find it?
Asked by:
65 Viewed 65 Answers

Answer (65)

Best Answer
(331)
Ensure you're installing the module into the same Python environment that VS Code is using. Use `pip list` in your terminal (within the activated environment) to confirm the module is present. If it's installed globally but VS Code uses a virtual environment, it won't be found. Activate the correct environment before installing.